misc: take span as the last parameter
for consistency with the other `check_fn`s
This commit is contained in:
parent
874f1c8dc0
commit
fe086d7d5a
2 changed files with 2 additions and 2 deletions
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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`.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue