Skip to content

Commit 3a0400e

Browse files
committed
style: Make clippy happy
1 parent 4277197 commit 3a0400e

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

crates/core/src/reflection.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -54,13 +54,13 @@ impl<'a> Parameter<'a> {
5454
}
5555
}
5656

57-
impl<'a> fmt::Display for Parameter<'a> {
57+
impl fmt::Display for Parameter<'_> {
5858
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
5959
write!(f, "{}: {}", self.0, self.1)
6060
}
6161
}
6262

63-
impl<'a> fmt::Debug for Parameter<'a> {
63+
impl fmt::Debug for Parameter<'_> {
6464
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
6565
write!(f, "({:?}, {})", self.0, self.1)
6666
}
@@ -86,13 +86,13 @@ impl<'a> Child<'a> {
8686
}
8787
}
8888

89-
impl<'a> fmt::Display for Child<'a> {
89+
impl fmt::Display for Child<'_> {
9090
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
9191
write!(f, "{}: {}", self.0, self.1)
9292
}
9393
}
9494

95-
impl<'a> fmt::Debug for Child<'a> {
95+
impl fmt::Debug for Child<'_> {
9696
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
9797
write!(f, "({:?}, {})", self.0, self.1)
9898
}
@@ -150,7 +150,7 @@ impl<'a> Case<'a> {
150150
}
151151
}
152152

153-
impl<'a> fmt::Debug for Case<'a> {
153+
impl fmt::Debug for Case<'_> {
154154
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
155155
let predicate = if let Some(ref predicate) = self.predicate {
156156
format!("Some({})", predicate)

crates/tree/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ pub trait CaseTreeExt {
2020
fn tree(&self) -> CaseTree;
2121
}
2222

23-
impl<'a> CaseTreeExt for reflection::Case<'a> {
23+
impl CaseTreeExt for reflection::Case<'_> {
2424
fn tree(&self) -> CaseTree {
2525
CaseTree(convert(self))
2626
}

0 commit comments

Comments
 (0)