Improve get_by_key_enumerated
more
This commit is contained in:
parent
b2b7c859c1
commit
cb3b3cf6ab
3 changed files with 11 additions and 39 deletions
|
@ -124,7 +124,7 @@ impl<'tcx> AssocItems<'tcx> {
|
|||
&self,
|
||||
name: Symbol,
|
||||
) -> impl '_ + Iterator<Item = &ty::AssocItem> {
|
||||
self.items.get_by_key(&name).copied()
|
||||
self.items.get_by_key(name).copied()
|
||||
}
|
||||
|
||||
/// Returns an iterator over all associated items with the given name.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue