avoid unnecessary collect()
This commit is contained in:
parent
ecdea9e943
commit
b8db431f37
1 changed files with 1 additions and 4 deletions
|
@ -408,10 +408,7 @@ impl<'tcx> dyn AstConv<'tcx> + '_ {
|
||||||
traits with associated type `{name}`, you could use the \
|
traits with associated type `{name}`, you could use the \
|
||||||
fully-qualified path",
|
fully-qualified path",
|
||||||
),
|
),
|
||||||
traits
|
traits.iter().map(|trait_str| format!("<Example as {trait_str}>::{name}")),
|
||||||
.iter()
|
|
||||||
.map(|trait_str| format!("<Example as {trait_str}>::{name}"))
|
|
||||||
.collect::<Vec<_>>(),
|
|
||||||
Applicability::HasPlaceholders,
|
Applicability::HasPlaceholders,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue