Skip to content

Commit

Permalink
style: Make clippy happy
Browse files Browse the repository at this point in the history
  • Loading branch information
epage committed Dec 2, 2024
1 parent 4277197 commit 3a0400e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions crates/core/src/reflection.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand All @@ -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)
}
Expand Down Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion crates/tree/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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))
}
Expand Down

0 comments on commit 3a0400e

Please sign in to comment.