Skip to content

Commit 018804f

Browse files
author
B I Mohammed Abbas
committed
Fix indentation for cfg settimes
1 parent 4cd0f17 commit 018804f

File tree

1 file changed

+6
-1
lines changed
  • library/std/src/sys/pal/unix

1 file changed

+6
-1
lines changed

library/std/src/sys/pal/unix/fs.rs

+6-1
Original file line numberDiff line numberDiff line change
@@ -1314,7 +1314,12 @@ impl File {
13141314
}
13151315

13161316
pub fn set_times(&self, times: FileTimes) -> io::Result<()> {
1317-
#[cfg(not(any(target_os = "redox", target_os = "espidf", target_os = "horizon", target_os = "vxworks")))]
1317+
#[cfg(not(any(
1318+
target_os = "redox",
1319+
target_os = "espidf",
1320+
target_os = "horizon",
1321+
target_os = "vxworks"
1322+
)))]
13181323
let to_timespec = |time: Option<SystemTime>| match time {
13191324
Some(time) if let Some(ts) = time.t.to_timespec() => Ok(ts),
13201325
Some(time) if time > crate::sys::time::UNIX_EPOCH => Err(io::const_io_error!(

0 commit comments

Comments
 (0)