]> git.lizzy.rs Git - rust.git/blobdiff - src/librustdoc/html/markdown.rs
more dupe word typos
[rust.git] / src / librustdoc / html / markdown.rs
index 8e53fbbcd1975ce6fd6aa8fe66182326d2d8d6ac..68eb5008583ed82b110cc25eefa8a168f328711e 100644 (file)
@@ -813,11 +813,8 @@ fn error_invalid_codeblock_attr(&self, msg: &str, help: &str) {
             crate::lint::INVALID_CODEBLOCK_ATTRIBUTES,
             hir_id,
             self.sp,
-            |lint| {
-                let mut diag = lint.build(msg);
-                diag.help(help);
-                diag.emit();
-            },
+            msg,
+            |lint| lint.help(help),
         );
     }
 }