diff --git a/clippy_lints/src/lines_filter_map_ok.rs b/clippy_lints/src/lines_filter_map_ok.rs index 39e5e271d73..eec65d6a1fd 100644 --- a/clippy_lints/src/lines_filter_map_ok.rs +++ b/clippy_lints/src/lines_filter_map_ok.rs @@ -71,8 +71,7 @@ impl LateLintPass<'_> for LinesFilterMapOk { LINES_FILTER_MAP_OK, fm_span, &format!( - "`{}()` will run forever if the iterator repeatedly produces an `Err`", - fm_method.ident + "`{fm_method_str}()` will run forever if the iterator repeatedly produces an `Err`", ), |diag| { diag.span_note(