mirror of
https://gitee.com/openharmony/third_party_rust_either
synced 2024-11-27 01:01:13 +00:00
Override Read::read_to_string
This commit is contained in:
parent
5dbcc98f67
commit
dc62774ff5
@ -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"))]
|
||||
|
Loading…
Reference in New Issue
Block a user