Skip to content

Commit 1554993

Browse files
committed
Android: Fix unused-imports warning
1 parent 94aa08b commit 1554993

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/libstd/sys/unix/android.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@
3131
use libc::{c_int, c_void, sighandler_t, size_t, ssize_t};
3232
use libc::{ftruncate, pread, pwrite};
3333

34-
use convert::TryInto;
3534
use io;
3635
use super::{cvt, cvt_r};
3736

@@ -128,6 +127,7 @@ pub fn ftruncate64(fd: c_int, size: u64) -> io::Result<()> {
128127
pub unsafe fn cvt_pread64(fd: c_int, buf: *mut c_void, count: size_t, offset: i64)
129128
-> io::Result<ssize_t>
130129
{
130+
use convert::TryInto;
131131
weak!(fn pread64(c_int, *mut c_void, size_t, i64) -> ssize_t);
132132
pread64.get().map(|f| cvt(f(fd, buf, count, offset))).unwrap_or_else(|| {
133133
if let Ok(o) = offset.try_into() {
@@ -143,6 +143,7 @@ pub unsafe fn cvt_pread64(fd: c_int, buf: *mut c_void, count: size_t, offset: i6
143143
pub unsafe fn cvt_pwrite64(fd: c_int, buf: *const c_void, count: size_t, offset: i64)
144144
-> io::Result<ssize_t>
145145
{
146+
use convert::TryInto;
146147
weak!(fn pwrite64(c_int, *const c_void, size_t, i64) -> ssize_t);
147148
pwrite64.get().map(|f| cvt(f(fd, buf, count, offset))).unwrap_or_else(|| {
148149
if let Ok(o) = offset.try_into() {

0 commit comments

Comments
 (0)