Skip to content

Commit 3647e31

Browse files
committed
Update nix dependency
1 parent 240cc83 commit 3647e31

File tree

4 files changed

+6
-8
lines changed

4 files changed

+6
-8
lines changed

CHANGELOG.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,9 @@
44

55
### Changed
66

7-
- Migrated to 'tokio' crate.
8-
- Minimmum supported Rust version updated to 1.31
7+
- Migrated to 'tokio' crate.
8+
- Updated `nix` to version 0.22.
9+
- Minimmum supported Rust version updated to 1.46.0.
910

1011
## [0.5.3] - 2018-04-19
1112

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,6 @@ use_tokio = ["futures", "tokio", "mio-evented"]
1515

1616
[dependencies]
1717
futures = { version = "0.1", optional = true }
18-
nix = "0.14.0"
18+
nix = "0.22"
1919
mio = { version = "0.6", optional = true }
2020
tokio = { version = "0.1", optional = true }

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ The following features are planned for the library:
8686

8787
## Minimum Supported Rust Version (MSRV)
8888

89-
This crate is guaranteed to compile on stable Rust 1.31 and up. It *might*
89+
This crate is guaranteed to compile on stable Rust 1.46.0 and up. It *might*
9090
compile with older versions but that may change in any new patch release.
9191

9292
## Cross Compiling

src/error.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,6 @@ impl convert::From<io::Error> for Error {
4444
#[cfg(not(target_os = "wasi"))]
4545
impl convert::From<nix::Error> for Error {
4646
fn from(e: nix::Error) -> Error {
47-
match e {
48-
nix::Error::Sys(errno) => Error::Io(errno.into()),
49-
other => Error::Unexpected(format!("{:?}", other)), // should just be dealing with errno case
50-
}
47+
Error::Io(e.into())
5148
}
5249
}

0 commit comments

Comments
 (0)