From 2221fc81249eb91ca5f318ca29fea34d2cf14bb7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matthias=20Kr=C3=BCger?= Date: Wed, 24 Jul 2019 02:20:36 +0200 Subject: [PATCH] rustup https://github.com/rust-lang/rust/pull/62859 --- clippy_lints/src/redundant_clone.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clippy_lints/src/redundant_clone.rs b/clippy_lints/src/redundant_clone.rs index d24a20b079d1d..e855386159738 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;