Skip to content
This repository was archived by the owner on Dec 12, 2024. It is now read-only.

Commit 03d9381

Browse files
refactor(clippy): s/if let Err(_) = expr/expr.is_err()/
1 parent f83af96 commit 03d9381

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ pub fn stdout_lines(mut cmd: EasyCommand) -> Result<Vec<String>> {
148148
} = output;
149149

150150
let status_res = Error::from_status(status);
151-
if let Err(_) = &status_res {
151+
if status_res.is_err() {
152152
io::copy(&mut Cursor::new(stderr), &mut io::stderr()).unwrap();
153153
}
154154
status_res?;

0 commit comments

Comments
 (0)