Skip to content

Commit b086bed

Browse files
committed
Override BufRead::read_until and read_line
1 parent dc62774 commit b086bed

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/lib.rs

+8
Original file line numberDiff line numberDiff line change
@@ -1092,6 +1092,14 @@ where
10921092
fn consume(&mut self, amt: usize) {
10931093
for_both!(*self, ref mut inner => inner.consume(amt))
10941094
}
1095+
1096+
fn read_until(&mut self, byte: u8, buf: &mut std::vec::Vec<u8>) -> io::Result<usize> {
1097+
for_both!(*self, ref mut inner => inner.read_until(byte, buf))
1098+
}
1099+
1100+
fn read_line(&mut self, buf: &mut std::string::String) -> io::Result<usize> {
1101+
for_both!(*self, ref mut inner => inner.read_line(buf))
1102+
}
10951103
}
10961104

10971105
#[cfg(any(test, feature = "use_std"))]

0 commit comments

Comments
 (0)