diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2023-04-15 19:02:26 +0200 |
|---|---|---|
| committer | Matthias Krüger <matthias.krueger@famsik.de> | 2023-04-15 19:02:26 +0200 |
| commit | bcd79c222ac7a316502e9537e86fae6512bc697d (patch) | |
| tree | a4d475e20f72e13ca4a3e34c2d27e4f335b7cc8e /compiler/rustc_borrowck/src/lib.rs | |
| parent | d666f6bf22b3b46f2f232507b328379e7bfaedb0 (diff) | |
| download | rust-bcd79c222ac7a316502e9537e86fae6512bc697d.tar.gz rust-bcd79c222ac7a316502e9537e86fae6512bc697d.zip | |
fix clippy::{clone_on_copy, useless_conversion}
Diffstat (limited to 'compiler/rustc_borrowck/src/lib.rs')
| -rw-r--r-- | compiler/rustc_borrowck/src/lib.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_borrowck/src/lib.rs b/compiler/rustc_borrowck/src/lib.rs index a4b285a34fa..70d0a101b4e 100644 --- a/compiler/rustc_borrowck/src/lib.rs +++ b/compiler/rustc_borrowck/src/lib.rs @@ -528,7 +528,7 @@ impl<'cx, 'tcx> BorrowckInferCtxt<'cx, 'tcx> { where F: Fn() -> RegionCtxt, { - let next_region = self.infcx.next_nll_region_var(origin.clone()); + let next_region = self.infcx.next_nll_region_var(origin); let vid = next_region.as_var(); if cfg!(debug_assertions) && !self.inside_canonicalization_ctxt() { |
