Skip to content

Commit f7583b9

Browse files
committed
fix: lint warnings
1 parent 83a1062 commit f7583b9

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

benches/bench.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ struct CpuProfiler<'a> {
3030
}
3131

3232
#[cfg(unix)]
33-
impl<'a> Profiler for CpuProfiler<'a> {
33+
impl Profiler for CpuProfiler<'_> {
3434
fn start_profiling(&mut self, _benchmark_id: &str, benchmark_dir: &Path) {
3535
create_dir_all(benchmark_dir).unwrap();
3636

src/json/value.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ impl<'rc> ScopedJson<'rc> {
5050
}
5151
}
5252

53-
impl<'reg: 'rc, 'rc> From<Json> for ScopedJson<'rc> {
53+
impl<'rc> From<Json> for ScopedJson<'rc> {
5454
fn from(v: Json) -> ScopedJson<'rc> {
5555
ScopedJson::Derived(v)
5656
}

src/registry.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ pub struct Registry<'reg> {
7777
HashMap<String, Arc<dyn Source<Item = String, Error = IoError> + Send + Sync + 'reg>>,
7878
}
7979

80-
impl<'reg> Debug for Registry<'reg> {
80+
impl Debug for Registry<'_> {
8181
fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), fmt::Error> {
8282
f.debug_struct("Handlebars")
8383
.field("templates", &self.templates)
@@ -89,7 +89,7 @@ impl<'reg> Debug for Registry<'reg> {
8989
}
9090
}
9191

92-
impl<'reg> Default for Registry<'reg> {
92+
impl Default for Registry<'_> {
9393
fn default() -> Self {
9494
Self::new()
9595
}

src/render.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,7 @@ impl<'reg: 'rc, 'rc> RenderContext<'reg, 'rc> {
314314
}
315315
}
316316

317-
impl<'reg, 'rc> fmt::Debug for RenderContext<'reg, 'rc> {
317+
impl fmt::Debug for RenderContext<'_, '_> {
318318
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> Result<(), fmt::Error> {
319319
f.debug_struct("RenderContextInner")
320320
.field("dev_mode_templates", &self.dev_mode_templates)

tests/data_helper.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ use serde_json::json;
33

44
struct HelperWithBorrowedData<'a>(&'a String);
55

6-
impl<'a> HelperDef for HelperWithBorrowedData<'a> {
6+
impl HelperDef for HelperWithBorrowedData<'_> {
77
fn call<'_reg: '_rc, '_rc>(
88
&self,
99
_: &Helper<'_rc>,

0 commit comments

Comments
 (0)