mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 06:11:35 +00:00
Simplify
This commit is contained in:
parent
1ef4b2cb7b
commit
a044175412
18 changed files with 91 additions and 86 deletions
|
@ -697,7 +697,7 @@ fn iterate_trait_method_candidates(
|
|||
}
|
||||
known_implemented = true;
|
||||
// FIXME: we shouldn't be ignoring the binders here
|
||||
callback(&self_ty, *item)?
|
||||
callback(self_ty, *item)?
|
||||
}
|
||||
}
|
||||
ControlFlow::Continue(())
|
||||
|
@ -773,7 +773,7 @@ fn iterate_inherent_methods(
|
|||
cov_mark::hit!(impl_self_type_match_without_receiver);
|
||||
continue;
|
||||
}
|
||||
let receiver_ty = receiver_ty.unwrap_or(&self_ty);
|
||||
let receiver_ty = receiver_ty.unwrap_or(self_ty);
|
||||
callback(receiver_ty, item)?;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue