Skip to content

Commit

Permalink
Remove collect
Browse files Browse the repository at this point in the history
  • Loading branch information
vacuus committed Jan 15, 2022
1 parent b13a5bf commit 07fd90e
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/librustdoc/html/markdown.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 07fd90e

Please sign in to comment.