Skip to content

Commit

Permalink
remove old span_lint
Browse files Browse the repository at this point in the history
  • Loading branch information
y21 committed May 21, 2023
1 parent 1e73a9e commit 3eeeaa2
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions clippy_lints/src/unused_async.rs
@@ -1,4 +1,4 @@
use clippy_utils::diagnostics::{span_lint_and_help, span_lint_and_then};
use clippy_utils::diagnostics::span_lint_and_then;
use rustc_hir::intravisit::{walk_body, walk_expr, walk_fn, FnKind, Visitor};
use rustc_hir::{Body, Expr, ExprKind, FnDecl, YieldSource};
use rustc_lint::{LateContext, LateLintPass};
Expand Down Expand Up @@ -113,14 +113,6 @@ impl<'tcx> LateLintPass<'tcx> for UnusedAsync {
}
},
);
span_lint_and_help(
cx,
UNUSED_ASYNC,
span,
"unused `async` for function with no await statements",
None,
"consider removing the `async` from this function",
);
}
}
}
Expand Down

0 comments on commit 3eeeaa2

Please sign in to comment.