From e1f4364ae1c04dabb36e394702d5a89b07f95c0c Mon Sep 17 00:00:00 2001 From: Ed Page Date: Sat, 30 Nov 2024 12:41:02 -0600 Subject: [PATCH] style: Make clippy happy --- src/assert.rs | 2 +- src/cmd.rs | 4 ++-- src/output.rs | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/assert.rs b/src/assert.rs index 77723c9..0865df1 100644 --- a/src/assert.rs +++ b/src/assert.rs @@ -56,7 +56,7 @@ impl OutputAssertExt for process::Output { } } -impl<'c> OutputAssertExt for &'c mut process::Command { +impl OutputAssertExt for &mut process::Command { fn assert(self) -> Assert { let output = match self.output() { Ok(output) => output, diff --git a/src/cmd.rs b/src/cmd.rs index 22dcc3e..719efab 100644 --- a/src/cmd.rs +++ b/src/cmd.rs @@ -604,7 +604,7 @@ impl From for Command { } } -impl<'c> OutputOkExt for &'c mut Command { +impl OutputOkExt for &mut Command { fn ok(self) -> OutputResult { let output = self.output().map_err(OutputError::with_cause)?; if output.status.success() { @@ -643,7 +643,7 @@ impl<'c> OutputOkExt for &'c mut Command { } } -impl<'c> OutputAssertExt for &'c mut Command { +impl OutputAssertExt for &mut Command { fn assert(self) -> Assert { let output = match self.output() { Ok(output) => output, diff --git a/src/output.rs b/src/output.rs index 8969b28..2d49703 100644 --- a/src/output.rs +++ b/src/output.rs @@ -103,7 +103,7 @@ impl OutputOkExt for process::Output { } } -impl<'c> OutputOkExt for &'c mut process::Command { +impl OutputOkExt for &mut process::Command { fn ok(self) -> OutputResult { let output = self.output().map_err(OutputError::with_cause)?; if output.status.success() { @@ -318,7 +318,7 @@ impl<'a> DebugBytes<'a> { } } -impl<'a> fmt::Display for DebugBytes<'a> { +impl fmt::Display for DebugBytes<'_> { fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { format_bytes(self.bytes, f) }