diff options
| author | sjwang05 <63834813+sjwang05@users.noreply.github.com> | 2023-11-03 10:32:19 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-11-03 10:32:19 -0700 |
| commit | c50af350a1bf2b120844fd1dc8dcca362ce437d5 (patch) | |
| tree | 58ba4f81f491aaf9051e2fdf4ea809616cece58a | |
| parent | 10f3977ebaf384ffa1e99914fa8f7663e9399025 (diff) | |
| download | rust-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.rs | 3 |
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( |
