Skip to content

Commit f6005c6

Browse files
committed
Remove unused span argument from walk_fn.
1 parent 42361da commit f6005c6

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

clippy_lints/src/derive.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -425,7 +425,7 @@ struct UnsafeVisitor<'a, 'tcx> {
425425
impl<'tcx> Visitor<'tcx> for UnsafeVisitor<'_, 'tcx> {
426426
type NestedFilter = nested_filter::All;
427427

428-
fn visit_fn(&mut self, kind: FnKind<'tcx>, decl: &'tcx FnDecl<'_>, body_id: BodyId, span: Span, id: HirId) {
428+
fn visit_fn(&mut self, kind: FnKind<'tcx>, decl: &'tcx FnDecl<'_>, body_id: BodyId, _: Span, id: HirId) {
429429
if self.has_unsafe {
430430
return;
431431
}
@@ -438,7 +438,7 @@ impl<'tcx> Visitor<'tcx> for UnsafeVisitor<'_, 'tcx> {
438438
}
439439
}
440440

441-
walk_fn(self, kind, decl, body_id, span, id);
441+
walk_fn(self, kind, decl, body_id, id);
442442
}
443443

444444
fn visit_expr(&mut self, expr: &'tcx Expr<'_>) {

clippy_lints/src/unused_async.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ impl<'tcx> LateLintPass<'tcx> for UnusedAsync {
7070
) {
7171
if !span.from_expansion() && fn_kind.asyncness() == IsAsync::Async {
7272
let mut visitor = AsyncFnVisitor { cx, found_await: false };
73-
walk_fn(&mut visitor, fn_kind, fn_decl, body.id(), span, hir_id);
73+
walk_fn(&mut visitor, fn_kind, fn_decl, body.id(), hir_id);
7474
if !visitor.found_await {
7575
span_lint_and_help(
7676
cx,

clippy_lints/src/unwrap.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -326,6 +326,6 @@ impl<'tcx> LateLintPass<'tcx> for Unwrap {
326326
unwrappables: Vec::new(),
327327
};
328328

329-
walk_fn(&mut v, kind, decl, body.id(), span, fn_id);
329+
walk_fn(&mut v, kind, decl, body.id(), fn_id);
330330
}
331331
}

0 commit comments

Comments
 (0)