Skip to content

Commit

Permalink
util: deduplicate implementations of poll_read_buf() (#3064)
Browse files Browse the repository at this point in the history
  • Loading branch information
djc authored Oct 29, 2020
1 parent 34eb47d commit a3ef4e4
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 93 deletions.
2 changes: 0 additions & 2 deletions tokio-util/src/io/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,10 @@
//! [`Body`]: https://docs.rs/hyper/0.13/hyper/struct.Body.html
//! [`AsyncRead`]: tokio::io::AsyncRead
mod poll_read_buf;
mod read_buf;
mod reader_stream;
mod stream_reader;

pub use self::poll_read_buf::poll_read_buf;
pub use self::read_buf::read_buf;
pub use self::reader_stream::ReaderStream;
pub use self::stream_reader::StreamReader;
90 changes: 0 additions & 90 deletions tokio-util/src/io/poll_read_buf.rs

This file was deleted.

2 changes: 1 addition & 1 deletion tokio-util/src/io/read_buf.rs
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ where

fn poll(mut self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Self::Output> {
let this = &mut *self;
super::poll_read_buf(Pin::new(this.0), cx, this.1)
crate::util::poll_read_buf(cx, Pin::new(this.0), this.1)
}
}
}

0 comments on commit a3ef4e4

Please sign in to comment.