Skip to content

Commit

Permalink
cargo fmt
Browse files Browse the repository at this point in the history
lukaslueg committed Aug 25, 2022

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent dde8de2 commit 178409c
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions clippy_lints/src/functions/result.rs
Original file line number Diff line number Diff line change
@@ -83,12 +83,7 @@ fn check_result_unit_err(cx: &LateContext<'_>, err_ty: Ty<'_>, fn_header_span: S
}
}

fn check_result_large_err<'tcx>(
cx: &LateContext<'tcx>,
err_ty: Ty<'tcx>,
hir_ty_span: Span,
large_err_threshold: u64,
) {
fn check_result_large_err<'tcx>(cx: &LateContext<'tcx>, err_ty: Ty<'tcx>, hir_ty_span: Span, large_err_threshold: u64) {
let ty_size = approx_ty_size(cx, err_ty);
if ty_size >= large_err_threshold {
span_lint_and_then(

0 comments on commit 178409c

Please sign in to comment.