use to_vec() instead of .iter().cloned().collect() to convert slices to vecs.

This commit is contained in:
Matthias Krüger 2020-02-28 13:19:30 +01:00
parent bfc32dd106
commit 0c5d497603

View File

@ -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) => {