mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-03 20:23:59 +00:00
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
@ -71,8 +71,7 @@ impl LateLintPass<'_> for LinesFilterMapOk {
|
|||||||
LINES_FILTER_MAP_OK,
|
LINES_FILTER_MAP_OK,
|
||||||
fm_span,
|
fm_span,
|
||||||
&format!(
|
&format!(
|
||||||
"`{}()` will run forever if the iterator repeatedly produces an `Err`",
|
"`{fm_method_str}()` will run forever if the iterator repeatedly produces an `Err`",
|
||||||
fm_method.ident
|
|
||||||
),
|
),
|
||||||
|diag| {
|
|diag| {
|
||||||
diag.span_note(
|
diag.span_note(
|
||||||
|
Loading…
Reference in New Issue
Block a user