Rollup merge of #92936 - vacuus:html-markdown-parse, r=GuillaumeGomez
rustdoc: Remove `collect` in `html::markdown::parse`
This commit is contained in:
commit
25f73b7815
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
Reference in a new issue