Fix wrong suggestion in MANUAL_SWAP

This commit is contained in:
mcarton 2016-06-05 15:47:57 +02:00
parent 0e647b0e82
commit bdd6d2c35e

View file

@ -85,7 +85,7 @@ fn check_manual_swap(cx: &LateContext, block: &Block) {
("".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,
MANUAL_SWAP,