Skip to content

Commit 7eee09b

Browse files
committed
Format code
1 parent 9de8758 commit 7eee09b

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

clippy_lints/src/methods/err_expect.rs

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,21 @@
11
use super::ERR_EXPECT;
2-
use clippy_utils::{meets_msrv, msrvs, ty::is_type_diagnostic_item};
32
use clippy_utils::diagnostics::span_lint_and_sugg;
43
use clippy_utils::ty::implements_trait;
4+
use clippy_utils::{meets_msrv, msrvs, ty::is_type_diagnostic_item};
55
use rustc_errors::Applicability;
66
use rustc_lint::LateContext;
77
use rustc_middle::ty;
88
use rustc_middle::ty::Ty;
99
use rustc_semver::RustcVersion;
10-
use rustc_span::{Span, sym};
10+
use rustc_span::{sym, Span};
1111

12-
pub(super) fn check(cx: &LateContext<'_>, _expr: &rustc_hir::Expr<'_>, recv: &rustc_hir::Expr<'_>, msrv: Option<&RustcVersion>, span: Span) {
12+
pub(super) fn check(
13+
cx: &LateContext<'_>,
14+
_expr: &rustc_hir::Expr<'_>,
15+
recv: &rustc_hir::Expr<'_>,
16+
msrv: Option<&RustcVersion>,
17+
span: Span,
18+
) {
1319
if_chain! {
1420
if is_type_diagnostic_item(cx, cx.typeck_results().expr_ty(recv), sym::Result);
1521
if meets_msrv(msrv, &msrvs::EXPECT_ERR);

0 commit comments

Comments
 (0)