diff options
| author | Tobias Bucher <tobiasbucher5991@gmail.com> | 2016-10-11 12:16:35 +0200 |
|---|---|---|
| committer | Tobias Bucher <tobiasbucher5991@gmail.com> | 2016-10-11 12:16:35 +0200 |
| commit | 2eda01ee437876d8e613a33de8105d11b66380dd (patch) | |
| tree | 76d498c4bea10e0bd42cd00d6fc443881fcaa74e /src/libstd/sys | |
| parent | 70dcfd634ea6abe06a6f8c40ca3d294fb0802670 (diff) | |
| download | rust-2eda01ee437876d8e613a33de8105d11b66380dd.tar.gz rust-2eda01ee437876d8e613a33de8105d11b66380dd.zip | |
Fix Android compilation `io::Error` -> `io::ErrorKind`
Diffstat (limited to 'src/libstd/sys')
| -rw-r--r-- | src/libstd/sys/unix/android.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libstd/sys/unix/android.rs b/src/libstd/sys/unix/android.rs index a4272a9f522..d8aa6e372be 100644 --- a/src/libstd/sys/unix/android.rs +++ b/src/libstd/sys/unix/android.rs @@ -125,7 +125,7 @@ pub unsafe fn cvt_pread64(fd: c_int, buf: *mut c_void, count: size_t, offset: i6 if let Ok(o) = offset.try_into() { cvt(pread(fd, buf, count, o)) } else { - Err(io::Error::new(io::Error::InvalidInput, + Err(io::Error::new(io::ErrorKind::InvalidInput, "cannot pread >2GB")) } }) @@ -141,7 +141,7 @@ pub unsafe fn cvt_pwrite64(fd: c_int, buf: *const c_void, count: size_t, offset: if let Ok(o) = offset.try_into() { cvt(pwrite(fd, buf, count, o)) } else { - Err(io::Error::new(io::Error::InvalidInput, + Err(io::Error::new(io::ErrorKind::InvalidInput, "cannot pwrite >2GB")) } }) |
