Skip to content

Commit bdd6d2c

Browse files
committed
Fix wrong suggestion in MANUAL_SWAP
1 parent 0e647b0 commit bdd6d2c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clippy_lints/src/swap.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ fn check_manual_swap(cx: &LateContext, block: &Block) {
8585
("".to_owned(), "".to_owned(), "".to_owned())
8686
};
8787

88-
let span = mk_sp(tmp.span.lo, second.span.hi);
88+
let span = mk_sp(w[0].span.lo, second.span.hi);
8989

9090
span_lint_and_then(cx,
9191
MANUAL_SWAP,

0 commit comments

Comments
 (0)