mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-23 13:13:34 +00:00
Fix wrong suggestion in MANUAL_SWAP
This commit is contained in:
parent
0e647b0e82
commit
bdd6d2c35e
1 changed files with 1 additions and 1 deletions
|
@ -85,7 +85,7 @@ fn check_manual_swap(cx: &LateContext, block: &Block) {
|
||||||
("".to_owned(), "".to_owned(), "".to_owned())
|
("".to_owned(), "".to_owned(), "".to_owned())
|
||||||
};
|
};
|
||||||
|
|
||||||
let span = mk_sp(tmp.span.lo, second.span.hi);
|
let span = mk_sp(w[0].span.lo, second.span.hi);
|
||||||
|
|
||||||
span_lint_and_then(cx,
|
span_lint_and_then(cx,
|
||||||
MANUAL_SWAP,
|
MANUAL_SWAP,
|
||||||
|
|
Loading…
Reference in a new issue