diff options
| author | Thalia Archibald <thalia@archibald.dev> | 2025-02-04 19:53:14 -0800 |
|---|---|---|
| committer | Thalia Archibald <thalia@archibald.dev> | 2025-03-17 16:53:37 -0700 |
| commit | c5fc1931a05f48fe3b4adf213ad3fcefb4e4434b (patch) | |
| tree | ec49be65a868d7865fc09b09d9ae2c1de977afad /library/std/src/sys/fs | |
| parent | 90384941aae4ea38de00e4702b50757e9b882a19 (diff) | |
Implement read_buf for Hermit
Diffstat (limited to 'library/std/src/sys/fs')
| -rw-r--r-- | library/std/src/sys/fs/hermit.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/library/std/src/sys/fs/hermit.rs b/library/std/src/sys/fs/hermit.rs index 1191e335daa..f83a2f90ed2 100644 --- a/library/std/src/sys/fs/hermit.rs +++ b/library/std/src/sys/fs/hermit.rs @@ -396,7 +396,7 @@ impl File { } pub fn read_buf(&self, cursor: BorrowedCursor<'_>) -> io::Result<()> { - crate::io::default_read_buf(|buf| self.read(buf), cursor) + self.0.read_buf(cursor) } pub fn write(&self, buf: &[u8]) -> io::Result<usize> { |
