Skip to content

Commit 2f4b105

Browse files
committed
Remove references
1 parent 8a3a0ea commit 2f4b105

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

clippy_lints/src/redundant_clone.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -297,11 +297,11 @@ fn find_stmt_assigns_to<'tcx>(
297297

298298
match (by_ref, &*rvalue) {
299299
(true, mir::Rvalue::Ref(_, _, place)) | (false, mir::Rvalue::Use(mir::Operand::Copy(place))) => {
300-
base_local_and_movability(cx, mir, place)
300+
base_local_and_movability(cx, mir, *place)
301301
},
302302
(false, mir::Rvalue::Ref(_, _, place)) => {
303303
if let [mir::ProjectionElem::Deref] = place.as_ref().projection {
304-
base_local_and_movability(cx, mir, place)
304+
base_local_and_movability(cx, mir, *place)
305305
} else {
306306
None
307307
}
@@ -317,7 +317,7 @@ fn find_stmt_assigns_to<'tcx>(
317317
fn base_local_and_movability<'tcx>(
318318
cx: &LateContext<'_, 'tcx>,
319319
mir: &mir::Body<'tcx>,
320-
place: &mir::Place<'tcx>,
320+
place: mir::Place<'tcx>,
321321
) -> Option<(mir::Local, CannotMoveOut)> {
322322
use rustc::mir::PlaceRef;
323323

0 commit comments

Comments
 (0)