don't clone types that are copy (clippy::clone_on_copy)
This commit is contained in:
parent
82fe5c1662
commit
db6c50998c
4 changed files with 6 additions and 6 deletions
|
@ -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,
|
||||
));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue