We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 983cce8 commit 26715a8Copy full SHA for 26715a8
crates/ide-assists/src/utils.rs
@@ -702,10 +702,8 @@ fn handle_as_ref_str(
702
) -> Option<(ReferenceConversionType, bool)> {
703
let str_type = hir::BuiltinType::str().ty(db);
704
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
- ))
+ ty.impls_trait(db, famous_defs.core_convert_AsRef()?, &[str_type.clone()])
+ .then_some((ReferenceConversionType::AsRefStr, could_deref_to_target(ty, &str_type, db)))
709
}
710
711
fn handle_as_ref_slice(
0 commit comments