Skip to content

Commit ad002ea

Browse files
committed
fix: linter
1 parent 40cb24f commit ad002ea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clippy_lints/src/methods/unnecessary_filter_map.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ pub(super) fn check<'tcx>(cx: &LateContext<'tcx>, expr: &'tcx hir::Expr<'tcx>, a
7979
},
8080
expr.span,
8181
format!("this `.{name}` can be written more simply"),
82-
format!("try instead"),
82+
"try instead",
8383
sugg.to_string(),
8484
Applicability::MaybeIncorrect,
8585
);

0 commit comments

Comments
 (0)