mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-28 10:39:45 +00:00
Typo fix
This commit is contained in:
parent
f0428e57ea
commit
983cce8c31
1 changed files with 3 additions and 3 deletions
|
|
@ -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)> {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue