Rollup merge of - vacuus:html-markdown-parse, r=GuillaumeGomez

rustdoc: Remove `collect` in `html::markdown::parse`
This commit is contained in:
Matthias Krüger 2022-01-17 20:07:08 +01:00 committed by GitHub
commit 25f73b7815
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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;