fix: linter
This commit is contained in:
parent
40cb24f23c
commit
ad002ea99f
@ -79,7 +79,7 @@ pub(super) fn check<'tcx>(cx: &LateContext<'tcx>, expr: &'tcx hir::Expr<'tcx>, a
|
||||
},
|
||||
expr.span,
|
||||
format!("this `.{name}` can be written more simply"),
|
||||
format!("try instead"),
|
||||
"try instead",
|
||||
sugg.to_string(),
|
||||
Applicability::MaybeIncorrect,
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user