for x in xs.iter()
-> for x in &xs
This commit is contained in:
parent
9f90d666e0
commit
d5d7e6565a
269 changed files with 1063 additions and 1064 deletions
|
@ -1526,7 +1526,7 @@ mod test {
|
|||
// check that the given reader produces the desired stream
|
||||
// of tokens (stop checking after exhausting the expected vec)
|
||||
fn check_tokenization (mut string_reader: StringReader, expected: Vec<token::Token> ) {
|
||||
for expected_tok in expected.iter() {
|
||||
for expected_tok in &expected {
|
||||
assert_eq!(&string_reader.next_token().tok, expected_tok);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue