mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 07:14:28 +00:00
use to_vec() instead of .iter().cloned().collect() to convert slices to vecs.
This commit is contained in:
parent
bfc32dd106
commit
0c5d497603
@ -588,14 +588,14 @@ impl<'a> TraitDef<'a> {
|
||||
span: self.span,
|
||||
bound_generic_params: wb.bound_generic_params.clone(),
|
||||
bounded_ty: wb.bounded_ty.clone(),
|
||||
bounds: wb.bounds.iter().cloned().collect(),
|
||||
bounds: wb.bounds.to_vec(),
|
||||
})
|
||||
}
|
||||
ast::WherePredicate::RegionPredicate(ref rb) => {
|
||||
ast::WherePredicate::RegionPredicate(ast::WhereRegionPredicate {
|
||||
span: self.span,
|
||||
lifetime: rb.lifetime,
|
||||
bounds: rb.bounds.iter().cloned().collect(),
|
||||
bounds: rb.bounds.to_vec(),
|
||||
})
|
||||
}
|
||||
ast::WherePredicate::EqPredicate(ref we) => {
|
||||
|
Loading…
Reference in New Issue
Block a user