Skip to content

Commit 9b8c3e0

Browse files
committed
elide some lifetimes
1 parent b702f0b commit 9b8c3e0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

clippy_lints/src/missing_asserts_for_indexing.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ fn check_assert<'hir>(cx: &LateContext<'_>, expr: &'hir Expr<'hir>, map: &mut Un
275275
*entry = IndexEntry::AssertWithIndex {
276276
highest_index: *highest_index,
277277
indexes: mem::take(indexes),
278-
slice: *slice,
278+
slice,
279279
assert_span: expr.span,
280280
comparison,
281281
asserted_len,
@@ -295,7 +295,7 @@ fn check_assert<'hir>(cx: &LateContext<'_>, expr: &'hir Expr<'hir>, map: &mut Un
295295
/// Inspects indexes and reports lints.
296296
///
297297
/// Called at the end of this lint after all indexing and `assert!` expressions have been collected.
298-
fn report_indexes<'hir>(cx: &LateContext<'_>, map: &UnhashMap<u64, Vec<IndexEntry<'hir>>>) {
298+
fn report_indexes(cx: &LateContext<'_>, map: &UnhashMap<u64, Vec<IndexEntry<'_>>>) {
299299
for bucket in map.values() {
300300
for entry in bucket {
301301
let Some(full_span) = entry

0 commit comments

Comments
 (0)