about summary refs log tree commit diff
path: root/src/libstd/io
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2019-03-05 05:40:16 +0000
committerbors <bors@rust-lang.org>2019-03-05 05:40:16 +0000
commitf22dca0a1bef4141e75326caacc3cd59f3d5be8e (patch)
tree700faebd8b654b03b2d9325618c30f22e9351ace /src/libstd/io
parenta9da8fc9c267c08cfdb8cf5b39da14f154d12939 (diff)
parent95840b35fc047af16ac4d1c7c0948761295494f8 (diff)
downloadrust-f22dca0a1bef4141e75326caacc3cd59f3d5be8e.tar.gz
rust-f22dca0a1bef4141e75326caacc3cd59f3d5be8e.zip
Auto merge of #58423 - nox:relax-bounds-buf-reader, r=dtolnay
Relax Read bounds on a bunch of BufReader<R> methods
Diffstat (limited to 'src/libstd/io')
-rw-r--r--src/libstd/io/buffered.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libstd/io/buffered.rs b/src/libstd/io/buffered.rs
index 559a54d3c8a..a14c10d0b61 100644
--- a/src/libstd/io/buffered.rs
+++ b/src/libstd/io/buffered.rs
@@ -101,7 +101,9 @@ impl<R: Read> BufReader<R> {
             }
         }
     }
+}
 
+impl<R> BufReader<R> {
     /// Gets a reference to the underlying reader.
     ///
     /// It is inadvisable to directly read from the underlying reader.