diff --git a/benches/bench.rs b/benches/bench.rs index 4386cc44b..a987c7562 100644 --- a/benches/bench.rs +++ b/benches/bench.rs @@ -30,7 +30,7 @@ struct CpuProfiler<'a> { } #[cfg(unix)] -impl<'a> Profiler for CpuProfiler<'a> { +impl Profiler for CpuProfiler<'_> { fn start_profiling(&mut self, _benchmark_id: &str, benchmark_dir: &Path) { create_dir_all(benchmark_dir).unwrap(); diff --git a/src/json/value.rs b/src/json/value.rs index 10a0b63e9..0217d52eb 100644 --- a/src/json/value.rs +++ b/src/json/value.rs @@ -50,7 +50,7 @@ impl<'rc> ScopedJson<'rc> { } } -impl<'reg: 'rc, 'rc> From for ScopedJson<'rc> { +impl<'rc> From for ScopedJson<'rc> { fn from(v: Json) -> ScopedJson<'rc> { ScopedJson::Derived(v) } diff --git a/src/registry.rs b/src/registry.rs index 695e26a7c..16246c0d0 100644 --- a/src/registry.rs +++ b/src/registry.rs @@ -77,7 +77,7 @@ pub struct Registry<'reg> { HashMap + Send + Sync + 'reg>>, } -impl<'reg> Debug for Registry<'reg> { +impl Debug for Registry<'_> { fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), fmt::Error> { f.debug_struct("Handlebars") .field("templates", &self.templates) @@ -89,7 +89,7 @@ impl<'reg> Debug for Registry<'reg> { } } -impl<'reg> Default for Registry<'reg> { +impl Default for Registry<'_> { fn default() -> Self { Self::new() } diff --git a/src/render.rs b/src/render.rs index f3cd45aa3..d56e7403e 100644 --- a/src/render.rs +++ b/src/render.rs @@ -314,7 +314,7 @@ impl<'reg: 'rc, 'rc> RenderContext<'reg, 'rc> { } } -impl<'reg, 'rc> fmt::Debug for RenderContext<'reg, 'rc> { +impl fmt::Debug for RenderContext<'_, '_> { fn fmt(&self, f: &mut fmt::Formatter<'_>) -> Result<(), fmt::Error> { f.debug_struct("RenderContextInner") .field("dev_mode_templates", &self.dev_mode_templates) diff --git a/tests/data_helper.rs b/tests/data_helper.rs index 42f2067cd..0bd81d0a7 100644 --- a/tests/data_helper.rs +++ b/tests/data_helper.rs @@ -3,7 +3,7 @@ use serde_json::json; struct HelperWithBorrowedData<'a>(&'a String); -impl<'a> HelperDef for HelperWithBorrowedData<'a> { +impl HelperDef for HelperWithBorrowedData<'_> { fn call<'_reg: '_rc, '_rc>( &self, _: &Helper<'_rc>,