remove redundant clones
This commit is contained in:
parent
0781b4474b
commit
1734f9c291
3 changed files with 3 additions and 3 deletions
|
@ -49,7 +49,7 @@ impl<'cx, 'tcx> AtExt<'tcx> for At<'cx, 'tcx> {
|
|||
self.param_env,
|
||||
);
|
||||
if !value.has_projections() {
|
||||
return Ok(Normalized { value: value.clone(), obligations: vec![] });
|
||||
return Ok(Normalized { value, obligations: vec![] });
|
||||
}
|
||||
|
||||
let mut normalizer = QueryNormalizer {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue