Skip to content

Commit 3eeeaa2

Browse files
committed
remove old span_lint
1 parent 1e73a9e commit 3eeeaa2

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

clippy_lints/src/unused_async.rs

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
use clippy_utils::diagnostics::{span_lint_and_help, span_lint_and_then};
1+
use clippy_utils::diagnostics::span_lint_and_then;
22
use rustc_hir::intravisit::{walk_body, walk_expr, walk_fn, FnKind, Visitor};
33
use rustc_hir::{Body, Expr, ExprKind, FnDecl, YieldSource};
44
use rustc_lint::{LateContext, LateLintPass};
@@ -113,14 +113,6 @@ impl<'tcx> LateLintPass<'tcx> for UnusedAsync {
113113
}
114114
},
115115
);
116-
span_lint_and_help(
117-
cx,
118-
UNUSED_ASYNC,
119-
span,
120-
"unused `async` for function with no await statements",
121-
None,
122-
"consider removing the `async` from this function",
123-
);
124116
}
125117
}
126118
}

0 commit comments

Comments
 (0)