diff options
| author | Nick Cameron <nrc@ncameron.org> | 2022-06-07 08:43:54 +0100 | 
|---|---|---|
| committer | Nick Cameron <nrc@ncameron.org> | 2022-08-05 17:18:51 +0100 | 
| commit | 1a2122fff015d1d7fb31fe3a55e49027d67d79af (patch) | |
| tree | 374f8a15ec2b3e0c8a61f25bebdb5122c265041e /library/std/src/sys/unix/fd.rs | |
| parent | b56cf67ce14580111ffb07a08a293e217566e116 (diff) | |
| download | rust-1a2122fff015d1d7fb31fe3a55e49027d67d79af.tar.gz rust-1a2122fff015d1d7fb31fe3a55e49027d67d79af.zip | |
non-linux platforms
Signed-off-by: Nick Cameron <nrc@ncameron.org>
Diffstat (limited to 'library/std/src/sys/unix/fd.rs')
| -rw-r--r-- | library/std/src/sys/unix/fd.rs | 4 | 
1 files changed, 2 insertions, 2 deletions
| diff --git a/library/std/src/sys/unix/fd.rs b/library/std/src/sys/unix/fd.rs index 6adb734fb0a..76a269bb9b5 100644 --- a/library/std/src/sys/unix/fd.rs +++ b/library/std/src/sys/unix/fd.rs @@ -4,7 +4,7 @@ mod tests; use crate::cmp; -use crate::io::{self, BorrowCursor, IoSlice, IoSliceMut, Read}; +use crate::io::{self, BorrowedCursor, IoSlice, IoSliceMut, Read}; use crate::os::unix::io::{AsFd, AsRawFd, BorrowedFd, FromRawFd, IntoRawFd, OwnedFd, RawFd}; use crate::sys::cvt; use crate::sys_common::{AsInner, FromInner, IntoInner}; @@ -131,7 +131,7 @@ impl FileDesc { } } - pub fn read_buf(&self, mut cursor: BorrowCursor<'_, '_>) -> io::Result<()> { + pub fn read_buf(&self, mut cursor: BorrowedCursor<'_, '_>) -> io::Result<()> { let ret = cvt(unsafe { libc::read( self.as_raw_fd(), | 
