remove redundant clones

This commit is contained in:
Matthias Krüger 2020-12-05 12:59:54 +01:00
parent 0781b4474b
commit 1734f9c291
3 changed files with 3 additions and 3 deletions

View file

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