Skip to content

Commit 3adbf63

Browse files
committed
Move the TryInto import into the inner scope
1 parent 3cd9f3f commit 3adbf63

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libstd/sys/unix/fs.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
use crate::os::unix::prelude::*;
22

3-
use crate::convert::TryInto;
43
use crate::ffi::{CString, CStr, OsString, OsStr};
54
use crate::fmt;
65
use crate::io::{self, Error, ErrorKind, SeekFrom, IoSlice, IoSliceMut};
@@ -556,6 +555,7 @@ impl File {
556555

557556
#[cfg(not(target_os = "android"))]
558557
{
558+
use crate::convert::TryInto;
559559
let size: off64_t = size
560560
.try_into()
561561
.map_err(|e| io::Error::new(io::ErrorKind::InvalidInput, e))?;

0 commit comments

Comments
 (0)