We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 85b577a commit d9b40ffCopy full SHA for d9b40ff
src/io/buf_read/fill_buf.rs
@@ -12,8 +12,8 @@ pub struct FillBufFuture<'a, R: ?Sized> {
12
reader: &'a mut R,
13
}
14
15
-impl<'a, R: ?Sized> From<&'a mut R> for FillBufFuture<'a, R> {
16
- fn from(reader: &'a mut R) -> Self {
+impl<'a, R: ?Sized> FillBufFuture<'a, R> {
+ pub(crate) fn new(reader: &'a mut R) -> Self {
17
Self { reader }
18
19
src/io/buf_read/mod.rs
@@ -60,7 +60,7 @@ pub trait BufRead {
60
where
61
Self: Unpin,
62
{
63
- FillBufFuture::from(self)
+ FillBufFuture::new(self)
64
65
66
/// Reads all bytes into `buf` until the delimiter `byte` or EOF is reached.
0 commit comments