]> git.lizzy.rs Git - rust.git/blobdiff - src/librustdoc/html/markdown.rs
Rollup merge of #69563 - andre-richter:fix_no_std_match, r=Mark-Simulacrum
[rust.git] / src / librustdoc / html / markdown.rs
index 56f7b07cfc843f6d96b3c35ecd6816322bcb2afa..ff6431640d33e0f8e9acd6a779ea82d87d03dd83 100644 (file)
@@ -707,7 +707,7 @@ fn parse(
                 x if x.starts_with("edition") => {
                     data.edition = x[7..].parse::<Edition>().ok();
                 }
-                x if allow_error_code_check && x.starts_with("E") && x.len() == 5 => {
+                x if allow_error_code_check && x.starts_with('E') && x.len() == 5 => {
                     if x[1..].parse::<u32>().is_ok() {
                         data.error_codes.push(x.to_owned());
                         seen_rust_tags = !seen_other_tags || seen_rust_tags;