]> git.lizzy.rs Git - rust.git/blobdiff - src/tools/clippy/clippy_utils/src/diagnostics.rs
Rollup merge of #98368 - sunfishcode:sunfishcode/std-os-fd, r=joshtriplett
[rust.git] / src / tools / clippy / clippy_utils / src / diagnostics.rs
index 7f55db3b31f7070cdfd74801d2608ec4d6f00f6e..ad95369b9ef707091919fa59ea167a906c35e14e 100644 (file)
@@ -155,13 +155,7 @@ pub fn span_lint_and_then<C, S, F>(cx: &C, lint: &'static Lint, sp: S, msg: &str
     });
 }
 
-pub fn span_lint_hir(
-    cx: &LateContext<'_>,
-    lint: &'static Lint,
-    hir_id: HirId,
-    sp: Span,
-    msg: &str,
-) {
+pub fn span_lint_hir(cx: &LateContext<'_>, lint: &'static Lint, hir_id: HirId, sp: Span, msg: &str) {
     cx.tcx.struct_span_lint_hir(lint, hir_id, sp, |diag| {
         let mut diag = diag.build(msg);
         docs_link(&mut diag, lint);