Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Use correct span
  • Loading branch information
jeremystucki committed Aug 13, 2019
commit d578c43c51823952923f0698a3f2283cb3fcca0d
2 changes: 1 addition & 1 deletion clippy_lints/src/methods/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand Down