CI error fixes (#366)

Fixed identity conversion
Fixed clippy warning
Fixed tokio example compilation
mio upgrade
This commit is contained in:
Timon 2020-01-13 07:46:51 +01:00 committed by GitHub
parent 938c469b76
commit 9da9c1f5ad
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -53,15 +53,15 @@ crossterm_winapi = "0.5.1"
# UNIX dependencies # UNIX dependencies
# #
[target.'cfg(unix)'.dependencies] [target.'cfg(unix)'.dependencies]
libc = "0.2.51" libc = "0.2"
mio = "0.6.19" mio = "0.6.21"
signal-hook = { version = "0.1.12", features = ["mio-support"] } signal-hook = { version = "0.1.12", features = ["mio-support"] }
# #
# Dev dependencies (examples, ...) # Dev dependencies (examples, ...)
# #
[dev-dependencies] [dev-dependencies]
tokio = { version = "0.2.1", features = ["macros"] } tokio = { version = "0.2.9", features = ["full"] }
futures = "0.3" futures = "0.3"
futures-timer = "2" futures-timer = "2"
async-std = "1" async-std = "1"

View File

@ -24,7 +24,7 @@ pub(crate) fn exit() {
::std::process::exit(0); ::std::process::exit(0);
} }
#[allow(identity_conversion)] #[allow(clippy::identity_conversion)]
pub(crate) fn size() -> Result<(u16, u16)> { pub(crate) fn size() -> Result<(u16, u16)> {
// http://rosettacode.org/wiki/Terminal_control/Dimensions#Library:_BSD_libc // http://rosettacode.org/wiki/Terminal_control/Dimensions#Library:_BSD_libc
let mut size = winsize { let mut size = winsize {