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 Nov 30, 2024
1 parent 824c99a commit e1f4364
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/assert.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
4 changes: 2 additions & 2 deletions src/cmd.rs
Original file line number Diff line number Diff line change
Expand Up @@ -604,7 +604,7 @@ impl From<process::Command> 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() {
Expand Down Expand Up @@ -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,
Expand Down
4 changes: 2 additions & 2 deletions src/output.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down Expand Up @@ -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)
}
Expand Down

0 comments on commit e1f4364

Please sign in to comment.