Auto merge of #58423 - nox:relax-bounds-buf-reader, r=dtolnay

Relax Read bounds on a bunch of BufReader<R> methods
This commit is contained in:
bors
2019-03-05 05:40:16 +00:00
+2
View File
@@ -101,7 +101,9 @@ pub fn with_capacity(cap: usize, inner: R) -> BufReader<R> {
}
}
}
}
impl<R> BufReader<R> {
/// Gets a reference to the underlying reader.
///
/// It is inadvisable to directly read from the underlying reader.