Skip to content

Commit 3e99347

Browse files
committed
Upgrade nix dependency to v0.25
1 parent 4cf6130 commit 3e99347

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ thiserror = "1.0.20"
4242
git2 = "0.14.0"
4343

4444
[target.'cfg(unix)'.dependencies]
45-
nix = "0.20.0"
45+
nix = "0.25.0"
4646

4747
[target.'cfg(windows)'.dependencies]
4848
windows-sys = {version = "0.36.1", features = ["Win32_Foundation", "Win32_System_Threading"]}

src/native/unix.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,7 @@ pub(crate) fn kill_process(id: u32) -> Result<(), KillFailedError> {
1616
Ok(()) => Ok(()),
1717
Err(err) => Err(KillFailedError {
1818
pid: id,
19-
errno: if let nix::Error::Sys(errno) = err {
20-
Some(errno)
21-
} else {
22-
None
23-
},
19+
errno: Some(err),
2420
}),
2521
}
2622
}

0 commit comments

Comments
 (0)