diff options
| author | 王宇逸 <Strawberry_Str@hotmail.com> | 2025-02-26 00:05:55 +0800 |
|---|---|---|
| committer | 王宇逸 <Strawberry_Str@hotmail.com> | 2025-03-10 21:23:31 +0800 |
| commit | d24c6a29f5dca8c52ecf1ff88e4786e537078fb6 (patch) | |
| tree | adc17499130cbfd79713b491ee9fa78c77dba1ef /library/std/src/sys/fs/unix.rs | |
| parent | abcbd881754651af73f7454cbcbdab953d2e4e30 (diff) | |
| download | rust-d24c6a29f5dca8c52ecf1ff88e4786e537078fb6.tar.gz rust-d24c6a29f5dca8c52ecf1ff88e4786e537078fb6.zip | |
Fix code style
Diffstat (limited to 'library/std/src/sys/fs/unix.rs')
| -rw-r--r-- | library/std/src/sys/fs/unix.rs | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/library/std/src/sys/fs/unix.rs b/library/std/src/sys/fs/unix.rs index e99d6a07731..7774461a493 100644 --- a/library/std/src/sys/fs/unix.rs +++ b/library/std/src/sys/fs/unix.rs @@ -543,7 +543,12 @@ impl FileAttr { SystemTime::new(self.stat.st_atim.tv_sec as i64, self.stat.st_atim.tv_nsec as i64) } - #[cfg(any(target_os = "freebsd", target_os = "openbsd", target_vendor = "apple", target_os = "cygwin"))] + #[cfg(any( + target_os = "freebsd", + target_os = "openbsd", + target_vendor = "apple", + target_os = "cygwin", + ))] pub fn created(&self) -> io::Result<SystemTime> { SystemTime::new(self.stat.st_birthtime as i64, self.stat.st_birthtime_nsec as i64) } |
