diff options
| author | Marcin Mielniczuk <marmistrz.dev@zoho.eu> | 2019-08-08 11:44:59 +0200 |
|---|---|---|
| committer | Marcin Mielniczuk <marmistrz.dev@zoho.eu> | 2019-08-08 11:44:59 +0200 |
| commit | 3adbf63b119d26edf1997e974d0727791d6f4060 (patch) | |
| tree | d958ca19173d16b60ea2fa8cbd6b97200354ffa6 /src/libstd/sys | |
| parent | 3cd9f3f6ab7d906e23d0ddc4bb0604b09966961f (diff) | |
| download | rust-3adbf63b119d26edf1997e974d0727791d6f4060.tar.gz rust-3adbf63b119d26edf1997e974d0727791d6f4060.zip | |
Move the TryInto import into the inner scope
Diffstat (limited to 'src/libstd/sys')
| -rw-r--r-- | src/libstd/sys/unix/fs.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstd/sys/unix/fs.rs b/src/libstd/sys/unix/fs.rs index 48e449d9c37..0223957e611 100644 --- a/src/libstd/sys/unix/fs.rs +++ b/src/libstd/sys/unix/fs.rs @@ -1,6 +1,5 @@ use crate::os::unix::prelude::*; -use crate::convert::TryInto; use crate::ffi::{CString, CStr, OsString, OsStr}; use crate::fmt; use crate::io::{self, Error, ErrorKind, SeekFrom, IoSlice, IoSliceMut}; @@ -556,6 +555,7 @@ impl File { #[cfg(not(target_os = "android"))] { + use crate::convert::TryInto; let size: off64_t = size .try_into() .map_err(|e| io::Error::new(io::ErrorKind::InvalidInput, e))?; |
