diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2020-12-05 12:59:54 +0100 |
|---|---|---|
| committer | Matthias Krüger <matthias.krueger@famsik.de> | 2020-12-05 12:59:54 +0100 |
| commit | 1734f9c29129b832f499ffdb9a782ff8ccf66187 (patch) | |
| tree | e0848c28ee6a3f0468bdece05feec887eb509b01 /compiler/rustc_trait_selection | |
| parent | 0781b4474bc5677b187cef5b7a881d857732f6bf (diff) | |
| download | rust-1734f9c29129b832f499ffdb9a782ff8ccf66187.tar.gz rust-1734f9c29129b832f499ffdb9a782ff8ccf66187.zip | |
remove redundant clones
Diffstat (limited to 'compiler/rustc_trait_selection')
| -rw-r--r-- | compiler/rustc_trait_selection/src/traits/query/normalize.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_trait_selection/src/traits/query/normalize.rs b/compiler/rustc_trait_selection/src/traits/query/normalize.rs index 54743ef9ce9..33cd509cbb8 100644 --- a/compiler/rustc_trait_selection/src/traits/query/normalize.rs +++ b/compiler/rustc_trait_selection/src/traits/query/normalize.rs @@ -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 { |
