mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-27 07:00:55 +00:00
Use correct span
This commit is contained in:
parent
6a263c0816
commit
d578c43c51
1 changed files with 1 additions and 1 deletions
|
@ -2180,7 +2180,7 @@ fn lint_flat_map_identity<'a, 'tcx>(
|
|||
span_lint_and_sugg(
|
||||
cx,
|
||||
FLAT_MAP_IDENTITY,
|
||||
*span,
|
||||
span.with_hi(expr.span.hi()),
|
||||
message,
|
||||
"try",
|
||||
"flatten()".to_string(),
|
||||
|
|
Loading…
Reference in a new issue