Skip to content

Commit fe086d7

Browse files
committed
misc: take span as the last parameter
for consistency with the other `check_fn`s
1 parent 874f1c8 commit fe086d7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

clippy_lints/src/functions/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -503,7 +503,7 @@ impl<'tcx> LateLintPass<'tcx> for Functions {
503503
) {
504504
let hir_id = cx.tcx.local_def_id_to_hir_id(def_id);
505505
too_many_arguments::check_fn(cx, kind, decl, span, hir_id, self.too_many_arguments_threshold);
506-
too_many_lines::check_fn(cx, kind, span, body, self.too_many_lines_threshold);
506+
too_many_lines::check_fn(cx, kind, body, span, self.too_many_lines_threshold);
507507
not_unsafe_ptr_arg_deref::check_fn(cx, kind, decl, body, def_id);
508508
misnamed_getters::check_fn(cx, kind, decl, body, span);
509509
impl_trait_in_params::check_fn(cx, &kind, body, hir_id);

clippy_lints/src/functions/too_many_lines.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ use super::TOO_MANY_LINES;
1010
pub(super) fn check_fn(
1111
cx: &LateContext<'_>,
1212
kind: FnKind<'_>,
13-
span: Span,
1413
body: &hir::Body<'_>,
14+
span: Span,
1515
too_many_lines_threshold: u64,
1616
) {
1717
// Closures must be contained in a parent body, which will be checked for `too_many_lines`.

0 commit comments

Comments
 (0)