Skip to content

Commit c50af35

Browse files
sjwang05Centri3
andauthored
Use fm_method_str in lint formatting
Co-authored-by: Catherine Flores <catherine.3.flores@gmail.com>
1 parent 10f3977 commit c50af35

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

clippy_lints/src/lines_filter_map_ok.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,7 @@ impl LateLintPass<'_> for LinesFilterMapOk {
7171
LINES_FILTER_MAP_OK,
7272
fm_span,
7373
&format!(
74-
"`{}()` will run forever if the iterator repeatedly produces an `Err`",
75-
fm_method.ident
74+
"`{fm_method_str}()` will run forever if the iterator repeatedly produces an `Err`",
7675
),
7776
|diag| {
7877
diag.span_note(

0 commit comments

Comments
 (0)