mirror of
https://github.com/rust-lang/rust.git
synced 2025-01-17 10:13:34 +00:00
Remove collect
This commit is contained in:
parent
b13a5bf3c4
commit
07fd90e2a2
@ -923,9 +923,7 @@ impl LangString {
|
||||
|
||||
data.original = string.to_owned();
|
||||
|
||||
let tokens = Self::tokens(string).collect::<Vec<&str>>();
|
||||
|
||||
for token in tokens {
|
||||
for token in Self::tokens(string) {
|
||||
match token {
|
||||
"should_panic" => {
|
||||
data.should_panic = true;
|
||||
|
Loading…
Reference in New Issue
Block a user