Skip to content

Commit

Permalink
chore(tests): fix tests when tokio-proto feature disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
seanmonstar committed Jan 10, 2018
1 parent 2fe90f2 commit 30f7f1d
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/mock.rs
Original file line number Diff line number Diff line change
Expand Up @@ -87,9 +87,6 @@ impl<T> AsyncIo<T> {
}

impl AsyncIo<Buf> {
#[cfg(feature = "tokio-proto")]
//TODO: fix proto::conn::tests to not use tokio-proto API,
//and then this cfg flag go away
pub fn new_buf<T: Into<Vec<u8>>>(buf: T, bytes: usize) -> AsyncIo<Buf> {
AsyncIo::new(Buf::wrap(buf.into()), bytes)
}
Expand Down

0 comments on commit 30f7f1d

Please sign in to comment.