Skip to content

Commit 356b024

Browse files
committed
Remove span from UpvarCapture::ByValue
This span is unused and is superseded by capture_kind_expr_id in CaptureInfo
1 parent d7a6033 commit 356b024

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clippy_utils/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -969,7 +969,7 @@ pub fn can_move_expr_to_closure(cx: &LateContext<'tcx>, expr: &'tcx Expr<'_>) ->
969969
};
970970
if !self.locals.contains(&local_id) {
971971
let capture = match capture.info.capture_kind {
972-
UpvarCapture::ByValue(_) => CaptureKind::Value,
972+
UpvarCapture::ByValue => CaptureKind::Value,
973973
UpvarCapture::ByRef(borrow) => match borrow.kind {
974974
BorrowKind::ImmBorrow => CaptureKind::Ref(Mutability::Not),
975975
BorrowKind::UniqueImmBorrow | BorrowKind::MutBorrow => {

0 commit comments

Comments
 (0)