about summary refs log tree commit diff
diff options
context:
space:
mode:
authorAda Alakbarova <ada.alakbarova@proton.me>2025-08-12 00:09:31 +0200
committerAda Alakbarova <ada.alakbarova@proton.me>2025-08-12 00:38:19 +0200
commitfe086d7d5aa0e57ddba02050c3e9214b433a5c8a (patch)
tree719c0d0ede18457c3217ca05b2f49f69357b48c8
parent874f1c8dc0b3362799173f9e690b1cad8f081eaf (diff)
downloadrust-fe086d7d5aa0e57ddba02050c3e9214b433a5c8a.tar.gz
rust-fe086d7d5aa0e57ddba02050c3e9214b433a5c8a.zip
misc: take `span` as the last parameter
for consistency with the other `check_fn`s
-rw-r--r--clippy_lints/src/functions/mod.rs2
-rw-r--r--clippy_lints/src/functions/too_many_lines.rs2
2 files changed, 2 insertions, 2 deletions
diff --git a/clippy_lints/src/functions/mod.rs b/clippy_lints/src/functions/mod.rs
index 6051dc9479b..5eee889aaae 100644
--- a/clippy_lints/src/functions/mod.rs
+++ b/clippy_lints/src/functions/mod.rs
@@ -503,7 +503,7 @@ impl<'tcx> LateLintPass<'tcx> for Functions {
     ) {
         let hir_id = cx.tcx.local_def_id_to_hir_id(def_id);
         too_many_arguments::check_fn(cx, kind, decl, span, hir_id, self.too_many_arguments_threshold);
-        too_many_lines::check_fn(cx, kind, span, body, self.too_many_lines_threshold);
+        too_many_lines::check_fn(cx, kind, body, span, self.too_many_lines_threshold);
         not_unsafe_ptr_arg_deref::check_fn(cx, kind, decl, body, def_id);
         misnamed_getters::check_fn(cx, kind, decl, body, span);
         impl_trait_in_params::check_fn(cx, &kind, body, hir_id);
diff --git a/clippy_lints/src/functions/too_many_lines.rs b/clippy_lints/src/functions/too_many_lines.rs
index 4f90d9655b4..2d3663ce717 100644
--- a/clippy_lints/src/functions/too_many_lines.rs
+++ b/clippy_lints/src/functions/too_many_lines.rs
@@ -10,8 +10,8 @@ use super::TOO_MANY_LINES;
 pub(super) fn check_fn(
     cx: &LateContext<'_>,
     kind: FnKind<'_>,
-    span: Span,
     body: &hir::Body<'_>,
+    span: Span,
     too_many_lines_threshold: u64,
 ) {
     // Closures must be contained in a parent body, which will be checked for `too_many_lines`.