about summary refs log tree commit diff
diff options
context:
space:
mode:
authorsjwang05 <63834813+sjwang05@users.noreply.github.com>2023-11-03 10:32:19 -0700
committerGitHub <noreply@github.com>2023-11-03 10:32:19 -0700
commitc50af350a1bf2b120844fd1dc8dcca362ce437d5 (patch)
tree58ba4f81f491aaf9051e2fdf4ea809616cece58a
parent10f3977ebaf384ffa1e99914fa8f7663e9399025 (diff)
downloadrust-c50af350a1bf2b120844fd1dc8dcca362ce437d5.tar.gz
rust-c50af350a1bf2b120844fd1dc8dcca362ce437d5.zip
Use `fm_method_str` in lint formatting
Co-authored-by: Catherine Flores <catherine.3.flores@gmail.com>
-rw-r--r--clippy_lints/src/lines_filter_map_ok.rs3
1 files changed, 1 insertions, 2 deletions
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(