chore(tests): fix tests when tokio-proto feature disabled

This commit is contained in:
Sean McArthur
2018-01-09 18:30:10 -08:00
parent 2fe90f2564
commit 30f7f1dbe6

View File

@@ -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)
}