don't clone types that are copy (clippy::clone_on_copy)

This commit is contained in:
Matthias Krüger 2020-12-11 17:49:00 +01:00
parent 82fe5c1662
commit db6c50998c
4 changed files with 6 additions and 6 deletions

View file

@ -447,7 +447,7 @@ impl<'cx, 'tcx> SelectionContext<'cx, 'tcx> {
);
nested.push(Obligation::new(
obligation.cause.clone(),
obligation.param_env.clone(),
obligation.param_env,
normalized_super_trait,
));
}
@ -485,7 +485,7 @@ impl<'cx, 'tcx> SelectionContext<'cx, 'tcx> {
);
nested.push(Obligation::new(
obligation.cause.clone(),
obligation.param_env.clone(),
obligation.param_env,
normalized_bound,
));
}