lints: use rust-2018-idioms to eliminate #![allow(elided-lifetimes-in-paths)] (#5944)

This commit is contained in:
Thomas Coratger
2024-01-04 19:13:33 +01:00
committed by GitHub
parent 0520c62bb6
commit b828867f8c
4 changed files with 11 additions and 11 deletions

View File

@ -1,4 +1,4 @@
#![allow(missing_docs, elided_lifetimes_in_paths)]
#![allow(missing_docs)]
use criterion::{
black_box, criterion_group, criterion_main, measurement::WallTime, BenchmarkGroup, Criterion,
};
@ -52,7 +52,7 @@ pub fn serialization(c: &mut Criterion) {
}
/// Measures `Encode`, `Decode`, `Compress` and `Decompress`.
fn measure_table_serialization<T>(group: &mut BenchmarkGroup<WallTime>)
fn measure_table_serialization<T>(group: &mut BenchmarkGroup<'_, WallTime>)
where
T: Table + Default,
T::Key: Default + Clone + for<'de> serde::Deserialize<'de>,
@ -117,7 +117,7 @@ where
}
/// Measures `SeqWrite`, `RandomWrite`, `SeqRead` and `RandomRead` using `cursor` and `tx.put`.
fn measure_table_db<T>(group: &mut BenchmarkGroup<WallTime>)
fn measure_table_db<T>(group: &mut BenchmarkGroup<'_, WallTime>)
where
T: Table + Default,
T::Key: Default + Clone + for<'de> serde::Deserialize<'de>,
@ -213,7 +213,7 @@ where
}
/// Measures `SeqWrite`, `RandomWrite` and `SeqRead` using `cursor_dup` and `tx.put`.
fn measure_dupsort_db<T>(group: &mut BenchmarkGroup<WallTime>)
fn measure_dupsort_db<T>(group: &mut BenchmarkGroup<'_, WallTime>)
where
T: Table + Default + DupSort,
T::Key: Default + Clone + for<'de> serde::Deserialize<'de>,