Skip to content

Commit 26715a8

Browse files
authored
cargo fmt
1 parent 983cce8 commit 26715a8

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

crates/ide-assists/src/utils.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -702,10 +702,8 @@ fn handle_as_ref_str(
702702
) -> Option<(ReferenceConversionType, bool)> {
703703
let str_type = hir::BuiltinType::str().ty(db);
704704

705-
ty.impls_trait(db, famous_defs.core_convert_AsRef()?, &[str_type.clone()]).then_some((
706-
ReferenceConversionType::AsRefStr,
707-
could_deref_to_target(ty, &str_type, db),
708-
))
705+
ty.impls_trait(db, famous_defs.core_convert_AsRef()?, &[str_type.clone()])
706+
.then_some((ReferenceConversionType::AsRefStr, could_deref_to_target(ty, &str_type, db)))
709707
}
710708

711709
fn handle_as_ref_slice(

0 commit comments

Comments
 (0)