From 3a0400e2c5ab8c250d1af468b9f6710c2cc5c04d Mon Sep 17 00:00:00 2001 From: Ed Page Date: Mon, 2 Dec 2024 11:02:34 -0600 Subject: [PATCH] style: Make clippy happy --- crates/core/src/reflection.rs | 10 +++++----- crates/tree/src/lib.rs | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/crates/core/src/reflection.rs b/crates/core/src/reflection.rs index 120d1bd..0525cd3 100644 --- a/crates/core/src/reflection.rs +++ b/crates/core/src/reflection.rs @@ -54,13 +54,13 @@ impl<'a> Parameter<'a> { } } -impl<'a> fmt::Display for Parameter<'a> { +impl fmt::Display for Parameter<'_> { fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { write!(f, "{}: {}", self.0, self.1) } } -impl<'a> fmt::Debug for Parameter<'a> { +impl fmt::Debug for Parameter<'_> { fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { write!(f, "({:?}, {})", self.0, self.1) } @@ -86,13 +86,13 @@ impl<'a> Child<'a> { } } -impl<'a> fmt::Display for Child<'a> { +impl fmt::Display for Child<'_> { fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { write!(f, "{}: {}", self.0, self.1) } } -impl<'a> fmt::Debug for Child<'a> { +impl fmt::Debug for Child<'_> { fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { write!(f, "({:?}, {})", self.0, self.1) } @@ -150,7 +150,7 @@ impl<'a> Case<'a> { } } -impl<'a> fmt::Debug for Case<'a> { +impl fmt::Debug for Case<'_> { fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { let predicate = if let Some(ref predicate) = self.predicate { format!("Some({})", predicate) diff --git a/crates/tree/src/lib.rs b/crates/tree/src/lib.rs index 9e5e132..d3287a9 100644 --- a/crates/tree/src/lib.rs +++ b/crates/tree/src/lib.rs @@ -20,7 +20,7 @@ pub trait CaseTreeExt { fn tree(&self) -> CaseTree; } -impl<'a> CaseTreeExt for reflection::Case<'a> { +impl CaseTreeExt for reflection::Case<'_> { fn tree(&self) -> CaseTree { CaseTree(convert(self)) }