Skip to content

Commit

Permalink
Update to mio 0.7, remove mio-extras (#278)
Browse files Browse the repository at this point in the history
  • Loading branch information
roblabla authored Jan 28, 2021
1 parent d0aeb59 commit 609c705
Show file tree
Hide file tree
Showing 3 changed files with 190 additions and 191 deletions.
3 changes: 1 addition & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,7 @@ walkdir = "2.0.1"

[target.'cfg(target_os="linux")'.dependencies]
inotify = { version = "0.8", default-features = false }
mio = "0.6.15"
mio-extras = "2.0.5"
mio = { version = "0.7.7", features = ["os-ext"] }

[target.'cfg(target_os="macos")'.dependencies]
fsevent = "2.0.1"
Expand Down
7 changes: 0 additions & 7 deletions src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -145,13 +145,6 @@ impl<T> From<std::sync::PoisonError<T>> for Error {
}
}

#[cfg(target_os = "linux")]
impl<T> From<mio_extras::channel::SendError<T>> for Error {
fn from(err: mio_extras::channel::SendError<T>) -> Self {
Error::generic(&format!("internal channel error: {:?}", err))
}
}

#[test]
fn display_formatted_errors() {
let expected = "Some error";
Expand Down
Loading

0 comments on commit 609c705

Please sign in to comment.