misc: take span as the last parameter

for consistency with the other `check_fn`s
This commit is contained in:
Ada Alakbarova 2025-08-12 00:09:31 +02:00
parent 874f1c8dc0
commit fe086d7d5a
No known key found for this signature in database
2 changed files with 2 additions and 2 deletions

View file

@ -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);

View file

@ -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`.