Remove collect

This commit is contained in:
Roc Yu 2022-01-15 12:03:17 -05:00
parent b13a5bf3c4
commit 07fd90e2a2
No known key found for this signature in database
GPG Key ID: 5068CE514A79D27F

View File

@ -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;