Override Read::read_to_string

This commit is contained in:
Josh Stone 2022-07-26 15:16:16 -07:00
parent 5dbcc98f67
commit dc62774ff5

View File

@ -1058,6 +1058,10 @@ where
fn read_to_end(&mut self, buf: &mut std::vec::Vec<u8>) -> io::Result<usize> {
for_both!(*self, ref mut inner => inner.read_to_end(buf))
}
fn read_to_string(&mut self, buf: &mut std::string::String) -> io::Result<usize> {
for_both!(*self, ref mut inner => inner.read_to_string(buf))
}
}
#[cfg(any(test, feature = "use_std"))]