mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-12-27 13:33:31 +00:00
Address review comments
This commit is contained in:
parent
8a96815d00
commit
c441306427
1 changed files with 2 additions and 1 deletions
|
@ -281,6 +281,7 @@ pub fn iterate_method_candidates<T>(
|
||||||
name,
|
name,
|
||||||
mode,
|
mode,
|
||||||
&mut |ty, item| {
|
&mut |ty, item| {
|
||||||
|
assert!(slot.is_none());
|
||||||
slot = callback(ty, item);
|
slot = callback(ty, item);
|
||||||
slot.is_some()
|
slot.is_some()
|
||||||
},
|
},
|
||||||
|
@ -288,7 +289,7 @@ pub fn iterate_method_candidates<T>(
|
||||||
slot
|
slot
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn iterate_method_candidates_impl(
|
fn iterate_method_candidates_impl(
|
||||||
ty: &Canonical<Ty>,
|
ty: &Canonical<Ty>,
|
||||||
db: &dyn HirDatabase,
|
db: &dyn HirDatabase,
|
||||||
env: Arc<TraitEnvironment>,
|
env: Arc<TraitEnvironment>,
|
||||||
|
|
Loading…
Reference in a new issue