File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -87,6 +87,11 @@ impl<S: Seek + ?Sized> Seek for &mut S {
87
87
fn seek ( & mut self , pos : SeekFrom ) -> io:: Result < u64 > {
88
88
( * * self ) . seek ( pos)
89
89
}
90
+
91
+ #[ inline]
92
+ fn stream_position ( & mut self ) -> io:: Result < u64 > {
93
+ ( * * self ) . stream_position ( )
94
+ }
90
95
}
91
96
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
92
97
impl < B : BufRead + ?Sized > BufRead for & mut B {
@@ -186,6 +191,11 @@ impl<S: Seek + ?Sized> Seek for Box<S> {
186
191
fn seek ( & mut self , pos : SeekFrom ) -> io:: Result < u64 > {
187
192
( * * self ) . seek ( pos)
188
193
}
194
+
195
+ #[ inline]
196
+ fn stream_position ( & mut self ) -> io:: Result < u64 > {
197
+ ( * * self ) . stream_position ( )
198
+ }
189
199
}
190
200
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
191
201
impl < B : BufRead + ?Sized > BufRead for Box < B > {
You can’t perform that action at this time.
0 commit comments