for x in xs.iter_mut()
-> for x in &mut xs
Also `for x in option.iter_mut()` -> `if let Some(ref mut x) = option`
This commit is contained in:
parent
d5d7e6565a
commit
d5f61b4332
34 changed files with 54 additions and 54 deletions
|
@ -444,7 +444,7 @@ pub fn parse(sess: &ParseSess,
|
|||
if token_name_eq(&tok, &token::Eof) {
|
||||
if eof_eis.len() == 1us {
|
||||
let mut v = Vec::new();
|
||||
for dv in (&mut eof_eis[0]).matches.iter_mut() {
|
||||
for dv in &mut (&mut eof_eis[0]).matches {
|
||||
v.push(dv.pop().unwrap());
|
||||
}
|
||||
return Success(nameize(sess, ms, &v[]));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue