about summary refs log tree commit diff
diff options
context:
space:
mode:
authorAnthony Ramine <n.oxyde@gmail.com>2019-02-13 12:30:53 +0100
committerAnthony Ramine <n.oxyde@gmail.com>2019-02-13 12:30:53 +0100
commit95840b35fc047af16ac4d1c7c0948761295494f8 (patch)
tree1e69482278384366b9be828d6fc97ef518e5565d
parentccd23b95e5077a89a2ce35d09cbd4141ccc94f58 (diff)
downloadrust-95840b35fc047af16ac4d1c7c0948761295494f8.tar.gz
rust-95840b35fc047af16ac4d1c7c0948761295494f8.zip
Relax Read bounds on a bunch of BufReader<R> methods
-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 0615cd59db4..d760d88cdc2 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.