From 2654da7bcbfb7f7f56bc976dcd49bb3da1dd44c0 Mon Sep 17 00:00:00 2001 From: Martin Pool Date: Mon, 21 Oct 2024 08:52:09 -0700 Subject: [PATCH] clippy: rm unnecessary lifetimes --- src/console.rs | 4 ++-- src/visit.rs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/console.rs b/src/console.rs index 10fa10c7..76e5e8d2 100644 --- a/src/console.rs +++ b/src/console.rs @@ -293,7 +293,7 @@ pub struct TerminalWriter { view: Arc>, } -impl<'w> MakeWriter<'w> for TerminalWriter { +impl MakeWriter<'_> for TerminalWriter { type Writer = Self; fn make_writer(&self) -> Self::Writer { @@ -320,7 +320,7 @@ impl std::io::Write for TerminalWriter { /// Write trace output to the debug log file if it's open. pub struct DebugLogWriter(Arc>>); -impl<'w> MakeWriter<'w> for DebugLogWriter { +impl MakeWriter<'_> for DebugLogWriter { type Writer = Self; fn make_writer(&self) -> Self::Writer { diff --git a/src/visit.rs b/src/visit.rs index 013788b9..6a14f927 100644 --- a/src/visit.rs +++ b/src/visit.rs @@ -206,7 +206,7 @@ struct DiscoveryVisitor<'o> { error_exprs: &'o [Expr], } -impl<'o> DiscoveryVisitor<'o> { +impl DiscoveryVisitor<'_> { fn enter_function( &mut self, function_name: &Ident,