cargo fmt

This commit is contained in:
Shoyu Vanilla 2024-02-05 10:48:34 +09:00 committed by GitHub
parent 983cce8c31
commit 26715a8fde
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -702,10 +702,8 @@ fn handle_as_ref_str(
) -> Option<(ReferenceConversionType, bool)> {
let str_type = hir::BuiltinType::str().ty(db);
ty.impls_trait(db, famous_defs.core_convert_AsRef()?, &[str_type.clone()]).then_some((
ReferenceConversionType::AsRefStr,
could_deref_to_target(ty, &str_type, db),
))
ty.impls_trait(db, famous_defs.core_convert_AsRef()?, &[str_type.clone()])
.then_some((ReferenceConversionType::AsRefStr, could_deref_to_target(ty, &str_type, db)))
}
fn handle_as_ref_slice(