diff options
Diffstat (limited to 'library/std/src/io/cursor.rs')
| -rw-r--r-- | library/std/src/io/cursor.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/library/std/src/io/cursor.rs b/library/std/src/io/cursor.rs index e00577b5107..d98ab021cad 100644 --- a/library/std/src/io/cursor.rs +++ b/library/std/src/io/cursor.rs @@ -323,10 +323,10 @@ where Ok(n) } - fn read_buf(&mut self, mut cursor: BorrowedCursor<'_, '_>) -> io::Result<()> { + fn read_buf(&mut self, mut cursor: BorrowedCursor<'_>) -> io::Result<()> { let prev_written = cursor.written(); - Read::read_buf(&mut self.fill_buf()?, cursor.clone())?; + Read::read_buf(&mut self.fill_buf()?, cursor.reborrow())?; self.pos += (cursor.written() - prev_written) as u64; |
