1
Fork 0

Improve get_by_key_enumerated more

This commit is contained in:
Yuki Okushi 2021-06-18 18:22:41 +09:00
parent b2b7c859c1
commit cb3b3cf6ab
No known key found for this signature in database
GPG key ID: DABA5B072961C18A
3 changed files with 11 additions and 39 deletions

View file

@ -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.