Remove collect
This commit is contained in:
parent
b13a5bf3c4
commit
07fd90e2a2
1 changed files with 1 additions and 3 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue