mirror of
https://github.com/rust-lang/rust.git
synced 2025-04-16 22:16:53 +00:00
Rollup merge of #122633 - matthiaskrgr:col, r=fmease
avoid unnecessary collect()
This commit is contained in:
commit
12137462b4
@ -408,10 +408,7 @@ impl<'tcx> dyn AstConv<'tcx> + '_ {
|
||||
traits with associated type `{name}`, you could use the \
|
||||
fully-qualified path",
|
||||
),
|
||||
traits
|
||||
.iter()
|
||||
.map(|trait_str| format!("<Example as {trait_str}>::{name}"))
|
||||
.collect::<Vec<_>>(),
|
||||
traits.iter().map(|trait_str| format!("<Example as {trait_str}>::{name}")),
|
||||
Applicability::HasPlaceholders,
|
||||
);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user