Make the unused_mut lint smarter with respect to locals.

Fixes #26332
This commit is contained in:
Ariel Ben-Yehuda
2015-06-18 01:02:58 +03:00
committed by Ariel Ben-Yehuda
parent 2f45294a50
commit a18d9842ed
7 changed files with 23 additions and 23 deletions

View File

@@ -399,7 +399,7 @@ impl<'a> Parser<'a> {
}
Some(..) | None => { return &self.input[..0]; }
};
let mut end;
let end;
loop {
match self.cur.clone().next() {
Some((_, c)) if c.is_xid_continue() => {