Use fm_method_str in lint formatting
Co-authored-by: Catherine Flores <catherine.3.flores@gmail.com>
This commit is contained in:
parent
10f3977eba
commit
c50af350a1
1 changed files with 1 additions and 2 deletions
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue