Unnamed repository; edit this file 'description' to name the repository.
Typo fix
Shoyu Vanilla 2024-02-05
parent f0428e5 · commit 983cce8
-rw-r--r--crates/ide-assists/src/utils.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/crates/ide-assists/src/utils.rs b/crates/ide-assists/src/utils.rs
index e7186687bf..5ddfe3fe0f 100644
--- a/crates/ide-assists/src/utils.rs
+++ b/crates/ide-assists/src/utils.rs
@@ -686,9 +686,9 @@ pub(crate) fn convert_reference_type(
}
fn could_deref_to_target(ty: &hir::Type, target: &hir::Type, db: &dyn HirDatabase) -> bool {
- let ty_ref = hir:Type::reference(ty, hir::Mutability::Shared);
- let target_ref = hir:Type::reference(target, hir::Mutability::Shared);
- 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)
}
fn handle_copy(ty: &hir::Type, db: &dyn HirDatabase) -> Option<(ReferenceConversionType, bool)> {