Skip to content

Commit d578c43

Browse files
committed
Use correct span
1 parent 6a263c0 commit d578c43

File tree

1 file changed

+1
-1
lines changed
  • clippy_lints/src/methods

1 file changed

+1
-1
lines changed

clippy_lints/src/methods/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2180,7 +2180,7 @@ fn lint_flat_map_identity<'a, 'tcx>(
21802180
span_lint_and_sugg(
21812181
cx,
21822182
FLAT_MAP_IDENTITY,
2183-
*span,
2183+
span.with_hi(expr.span.hi()),
21842184
message,
21852185
"try",
21862186
"flatten()".to_string(),

0 commit comments

Comments
 (0)