fix review
This commit is contained in:
parent
c75c4a579b
commit
08b1e8004b
9 changed files with 64 additions and 70 deletions
|
@ -1695,7 +1695,7 @@ impl<'a, 'tcx> ProbeContext<'a, 'tcx> {
|
|||
} else {
|
||||
self.fcx
|
||||
.associated_item(def_id, name, Namespace::ValueNS)
|
||||
.map_or_else(|| Vec::new(), |x| vec![x])
|
||||
.map_or_else(Vec::new, |x| vec![x])
|
||||
}
|
||||
} else {
|
||||
self.tcx.associated_items(def_id).in_definition_order().copied().collect()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue