Skip to content

Commit

Permalink
refactor(clippy): s/if let Err(_) = expr/expr.is_err()/
Browse files Browse the repository at this point in the history
  • Loading branch information
ErichDonGubler committed Jul 13, 2023
1 parent f83af96 commit 03d9381
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ pub fn stdout_lines(mut cmd: EasyCommand) -> Result<Vec<String>> {
} = output;

let status_res = Error::from_status(status);
if let Err(_) = &status_res {
if status_res.is_err() {
io::copy(&mut Cursor::new(stderr), &mut io::stderr()).unwrap();
}
status_res?;
Expand Down

0 comments on commit 03d9381

Please sign in to comment.