Skip to content

Commit

Permalink
Merge pull request #16 from shuoli84/master
Browse files Browse the repository at this point in the history
update tokio => 1.0
  • Loading branch information
dermesser committed Jan 6, 2021
2 parents 80fd0d4 + 5e61738 commit a2beb9f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Cargo.toml
Expand Up @@ -11,11 +11,11 @@ edition = "2018"

[dependencies]
async-trait = { version = "0.1", optional = true }
tokio = { version = "0.3", features = ["io-util"], optional = true }
tokio = { version = "1.0", features = ["io-util"], optional = true }
futures-util = { version = "0.3", optional = true, features = ["io"] }

[dev-dependencies]
tokio = { version = "0.3", features = ["fs", "rt-multi-thread", "macros"] }
tokio = { version = "1.0", features = ["fs", "rt-multi-thread", "macros"] }
bencher = "~0.1"

[[example]]
Expand Down
2 changes: 1 addition & 1 deletion src/reader.rs
Expand Up @@ -5,7 +5,7 @@ use crate::fixed::FixedInt;
use crate::varint::{VarInt, MSB};

#[cfg(feature = "tokio_async")]
use tokio::{io::AsyncReadExt, prelude::*};
use tokio::io::{AsyncReadExt, AsyncRead};

#[cfg(feature = "futures_async")]
use futures_util::{io::AsyncRead, io::AsyncReadExt};
Expand Down
2 changes: 1 addition & 1 deletion src/writer.rs
Expand Up @@ -4,7 +4,7 @@ use crate::fixed::FixedInt;
use crate::varint::VarInt;

#[cfg(feature = "tokio_async")]
use tokio::{io::AsyncWriteExt, prelude::*};
use tokio::io::{AsyncWrite, AsyncWriteExt};

#[cfg(feature = "futures_async")]
use futures_util::{io::AsyncWrite, io::AsyncWriteExt};
Expand Down

0 comments on commit a2beb9f

Please sign in to comment.