From 7eee09be29b231dd6aade4afedbad0f18a5564ec Mon Sep 17 00:00:00 2001 From: InfRandomness Date: Thu, 31 Mar 2022 21:31:15 +0200 Subject: [PATCH] Format code --- clippy_lints/src/methods/err_expect.rs | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/clippy_lints/src/methods/err_expect.rs b/clippy_lints/src/methods/err_expect.rs index de3b961271db..9ea5f90f3f0b 100644 --- a/clippy_lints/src/methods/err_expect.rs +++ b/clippy_lints/src/methods/err_expect.rs @@ -1,15 +1,21 @@ use super::ERR_EXPECT; -use clippy_utils::{meets_msrv, msrvs, ty::is_type_diagnostic_item}; use clippy_utils::diagnostics::span_lint_and_sugg; use clippy_utils::ty::implements_trait; +use clippy_utils::{meets_msrv, msrvs, ty::is_type_diagnostic_item}; use rustc_errors::Applicability; use rustc_lint::LateContext; use rustc_middle::ty; use rustc_middle::ty::Ty; use rustc_semver::RustcVersion; -use rustc_span::{Span, sym}; +use rustc_span::{sym, Span}; -pub(super) fn check(cx: &LateContext<'_>, _expr: &rustc_hir::Expr<'_>, recv: &rustc_hir::Expr<'_>, msrv: Option<&RustcVersion>, span: Span) { +pub(super) fn check( + cx: &LateContext<'_>, + _expr: &rustc_hir::Expr<'_>, + recv: &rustc_hir::Expr<'_>, + msrv: Option<&RustcVersion>, + span: Span, +) { if_chain! { if is_type_diagnostic_item(cx, cx.typeck_results().expr_ty(recv), sym::Result); if meets_msrv(msrv, &msrvs::EXPECT_ERR);