diff options
Diffstat (limited to 'src/libstd/sys/unix')
| -rw-r--r-- | src/libstd/sys/unix/fd.rs | 2 | ||||
| -rw-r--r-- | src/libstd/sys/unix/fs.rs | 8 | ||||
| -rw-r--r-- | src/libstd/sys/unix/time.rs | 4 |
3 files changed, 7 insertions, 7 deletions
diff --git a/src/libstd/sys/unix/fd.rs b/src/libstd/sys/unix/fd.rs index db2ea6b660a..af33d2636fb 100644 --- a/src/libstd/sys/unix/fd.rs +++ b/src/libstd/sys/unix/fd.rs @@ -41,7 +41,7 @@ fn max_len() -> usize { impl FileDesc { pub fn new(fd: c_int) -> FileDesc { - FileDesc { fd: fd } + FileDesc { fd } } pub fn raw(&self) -> c_int { self.fd } diff --git a/src/libstd/sys/unix/fs.rs b/src/libstd/sys/unix/fs.rs index 1d5b0cfa94a..add06aec11b 100644 --- a/src/libstd/sys/unix/fs.rs +++ b/src/libstd/sys/unix/fs.rs @@ -317,7 +317,7 @@ impl DirEntry { cvt(unsafe { fstatat64(fd, self.entry.d_name.as_ptr(), &mut stat, libc::AT_SYMLINK_NOFOLLOW) })?; - Ok(FileAttr { stat: stat }) + Ok(FileAttr { stat }) } #[cfg(not(any(target_os = "linux", target_os = "emscripten", target_os = "android")))] @@ -526,7 +526,7 @@ impl File { cvt(unsafe { fstat64(self.0.raw(), &mut stat) })?; - Ok(FileAttr { stat: stat }) + Ok(FileAttr { stat }) } pub fn fsync(&self) -> io::Result<()> { @@ -807,7 +807,7 @@ pub fn stat(p: &Path) -> io::Result<FileAttr> { cvt(unsafe { stat64(p.as_ptr(), &mut stat) })?; - Ok(FileAttr { stat: stat }) + Ok(FileAttr { stat }) } pub fn lstat(p: &Path) -> io::Result<FileAttr> { @@ -816,7 +816,7 @@ pub fn lstat(p: &Path) -> io::Result<FileAttr> { cvt(unsafe { lstat64(p.as_ptr(), &mut stat) })?; - Ok(FileAttr { stat: stat }) + Ok(FileAttr { stat }) } pub fn canonicalize(p: &Path) -> io::Result<PathBuf> { diff --git a/src/libstd/sys/unix/time.rs b/src/libstd/sys/unix/time.rs index 0b1fb726357..af51f8a8e25 100644 --- a/src/libstd/sys/unix/time.rs +++ b/src/libstd/sys/unix/time.rs @@ -217,7 +217,7 @@ mod inner { impl From<libc::timespec> for SystemTime { fn from(t: libc::timespec) -> SystemTime { - SystemTime { t: Timespec { t: t } } + SystemTime { t: Timespec { t } } } } @@ -332,7 +332,7 @@ mod inner { impl From<libc::timespec> for SystemTime { fn from(t: libc::timespec) -> SystemTime { - SystemTime { t: Timespec { t: t } } + SystemTime { t: Timespec { t } } } } |
