Skip to content

Commit 2eda01e

Browse files
committed
Fix Android compilation io::Error -> io::ErrorKind
1 parent 70dcfd6 commit 2eda01e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/libstd/sys/unix/android.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ pub unsafe fn cvt_pread64(fd: c_int, buf: *mut c_void, count: size_t, offset: i6
125125
if let Ok(o) = offset.try_into() {
126126
cvt(pread(fd, buf, count, o))
127127
} else {
128-
Err(io::Error::new(io::Error::InvalidInput,
128+
Err(io::Error::new(io::ErrorKind::InvalidInput,
129129
"cannot pread >2GB"))
130130
}
131131
})
@@ -141,7 +141,7 @@ pub unsafe fn cvt_pwrite64(fd: c_int, buf: *const c_void, count: size_t, offset:
141141
if let Ok(o) = offset.try_into() {
142142
cvt(pwrite(fd, buf, count, o))
143143
} else {
144-
Err(io::Error::new(io::Error::InvalidInput,
144+
Err(io::Error::new(io::ErrorKind::InvalidInput,
145145
"cannot pwrite >2GB"))
146146
}
147147
})

0 commit comments

Comments
 (0)