Skip to content

Commit c81e43b

Browse files
committed
1 parent 25a1156 commit c81e43b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clippy_lints/src/redundant_clone.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,7 @@ fn base_local_and_movability<'tcx>(
299299
place = &proj.base;
300300
deref = deref || matches!(proj.elem, mir::ProjectionElem::Deref);
301301
if !field && matches!(proj.elem, mir::ProjectionElem::Field(..)) {
302-
field = has_drop(cx, place.ty(&mir.local_decls, cx.tcx).to_ty(cx.tcx));
302+
field = has_drop(cx, place.ty(&mir.local_decls, cx.tcx).ty);
303303
}
304304
},
305305
_ => return None,

0 commit comments

Comments
 (0)