Skip to content

Commit 983cce8

Browse files
authored
Typo fix
1 parent f0428e5 commit 983cce8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

crates/ide-assists/src/utils.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -686,9 +686,9 @@ pub(crate) fn convert_reference_type(
686686
}
687687

688688
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)
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_coerce_to(db, &target_ref)
692692
}
693693

694694
fn handle_copy(ty: &hir::Type, db: &dyn HirDatabase) -> Option<(ReferenceConversionType, bool)> {

0 commit comments

Comments
 (0)