Skip to content

Commit 25f73b7

Browse files
authored
Rollup merge of #92936 - vacuus:html-markdown-parse, r=GuillaumeGomez
rustdoc: Remove `collect` in `html::markdown::parse`
2 parents 7f02604 + 07fd90e commit 25f73b7

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/librustdoc/html/markdown.rs

+1-3
Original file line numberDiff line numberDiff line change
@@ -923,9 +923,7 @@ impl LangString {
923923

924924
data.original = string.to_owned();
925925

926-
let tokens = Self::tokens(string).collect::<Vec<&str>>();
927-
928-
for token in tokens {
926+
for token in Self::tokens(string) {
929927
match token {
930928
"should_panic" => {
931929
data.should_panic = true;

0 commit comments

Comments
 (0)