mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-11-14 00:47:18 +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,
|
||||
mode,
|
||||
&mut |ty, item| {
|
||||
assert!(slot.is_none());
|
||||
slot = callback(ty, item);
|
||||
slot.is_some()
|
||||
},
|
||||
|
@ -288,7 +289,7 @@ pub fn iterate_method_candidates<T>(
|
|||
slot
|
||||
}
|
||||
|
||||
pub fn iterate_method_candidates_impl(
|
||||
fn iterate_method_candidates_impl(
|
||||
ty: &Canonical<Ty>,
|
||||
db: &dyn HirDatabase,
|
||||
env: Arc<TraitEnvironment>,
|
||||
|
|
Loading…
Reference in a new issue