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 f0428e5 commit 983cce8Copy full SHA for 983cce8
crates/ide-assists/src/utils.rs
@@ -686,9 +686,9 @@ pub(crate) fn convert_reference_type(
686
}
687
688
fn could_deref_to_target(ty: &hir::Type, target: &hir::Type, db: &dyn HirDatabase) -> bool {
689
- let ty_ref = hir:Type::reference(ty, hir::Mutability::Shared);
690
- let target_ref = hir:Type::reference(target, hir::Mutability::Shared);
691
- ty_ref.could_coerece_to(db, &target_ref)
+ let ty_ref = hir::Type::reference(ty, hir::Mutability::Shared);
+ let target_ref = hir::Type::reference(target, hir::Mutability::Shared);
+ ty_ref.could_coerce_to(db, &target_ref)
692
693
694
fn handle_copy(ty: &hir::Type, db: &dyn HirDatabase) -> Option<(ReferenceConversionType, bool)> {
0 commit comments