about summary refs log tree commit diff
diff options
context:
space:
mode:
authorEduardo Broto <ebroto@tutanota.com>2020-06-07 21:13:13 +0200
committerEduardo Broto <ebroto@tutanota.com>2020-06-07 21:13:13 +0200
commita664ce7789a54006cc6c01d8aefbfa4477c9d618 (patch)
treee7599f5f547c40b27cf8b3ef0d57379769f977ef
parentebfc1da07d2cd1cba87a3df79c5ffbfc0d25618c (diff)
Remove unnecessary lifetime parameter
-rw-r--r--clippy_lints/src/ranges.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/clippy_lints/src/ranges.rs b/clippy_lints/src/ranges.rs
index 45de4d29375..52e540d4e00 100644
--- a/clippy_lints/src/ranges.rs
+++ b/clippy_lints/src/ranges.rs
@@ -241,7 +241,7 @@ fn check_inclusive_range_minus_one(cx: &LateContext<'_, '_>, expr: &Expr<'_>) {
 }
 
 fn check_reversed_empty_range(cx: &LateContext<'_, '_>, expr: &Expr<'_>) {
-    fn inside_indexing_expr<'a>(cx: &'a LateContext<'_, '_>, expr: &Expr<'_>) -> bool {
+    fn inside_indexing_expr(cx: &LateContext<'_, '_>, expr: &Expr<'_>) -> bool {
         matches!(
             get_parent_expr(cx, expr),
             Some(Expr {