about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2019-07-24 02:20:36 +0200
committerMatthias Krüger <matthias.krueger@famsik.de>2019-07-24 02:20:36 +0200
commit2221fc81249eb91ca5f318ca29fea34d2cf14bb7 (patch)
treec84d406c1105722614bd5b150e42929f69505368
parentd71e9c4f10da31bbdefa4dad64b1f38a456c89ce (diff)
downloadrust-2221fc81249eb91ca5f318ca29fea34d2cf14bb7.tar.gz
rust-2221fc81249eb91ca5f318ca29fea34d2cf14bb7.zip
rustup https://github.com/rust-lang/rust/pull/62859
-rw-r--r--clippy_lints/src/redundant_clone.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/clippy_lints/src/redundant_clone.rs b/clippy_lints/src/redundant_clone.rs
index d24a20b079d..e8553861597 100644
--- a/clippy_lints/src/redundant_clone.rs
+++ b/clippy_lints/src/redundant_clone.rs
@@ -293,7 +293,7 @@ fn base_local_and_movability<'tcx>(
     let PlaceRef {
         base: place_base,
         mut projection,
-    } = place.as_place_ref();
+    } = place.as_ref();
     if let PlaceBase::Local(local) = place_base {
         while let Some(box Projection { base, elem }) = projection {
             projection = base;