From feb413663aed55ef02ee68c698e4dc09ecb42a13 Mon Sep 17 00:00:00 2001 From: xxchan Date: Thu, 12 Dec 2024 22:45:49 +0800 Subject: [PATCH] clippy Signed-off-by: xxchan --- sqllogictest/src/runner.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sqllogictest/src/runner.rs b/sqllogictest/src/runner.rs index 71db46c..e4d25b9 100644 --- a/sqllogictest/src/runner.rs +++ b/sqllogictest/src/runner.rs @@ -154,7 +154,7 @@ pub struct TestErrorDisplay<'a> { colorize: bool, } -impl<'a> Display for TestErrorDisplay<'a> { +impl Display for TestErrorDisplay<'_> { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { write!( f, @@ -189,7 +189,7 @@ pub struct ParallelTestErrorDisplay<'a> { colorize: bool, } -impl<'a> Display for ParallelTestErrorDisplay<'a> { +impl Display for ParallelTestErrorDisplay<'_> { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { writeln!(f, "parallel test failed")?; write!(f, "Caused by:")?; @@ -332,7 +332,7 @@ pub struct TestErrorKindDisplay<'a> { colorize: bool, } -impl<'a> Display for TestErrorKindDisplay<'a> { +impl Display for TestErrorKindDisplay<'_> { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { if !self.colorize { return write!(f, "{}", self.error);