From d578c43c51823952923f0698a3f2283cb3fcca0d Mon Sep 17 00:00:00 2001 From: Jeremy Stucki Date: Tue, 13 Aug 2019 21:50:42 +0200 Subject: [PATCH] Use correct span --- clippy_lints/src/methods/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clippy_lints/src/methods/mod.rs b/clippy_lints/src/methods/mod.rs index b69534a7703..7f95cb475e2 100644 --- a/clippy_lints/src/methods/mod.rs +++ b/clippy_lints/src/methods/mod.rs @@ -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(),