Skip to content

Commit e2110d8

Browse files
authored
Rollup merge of #147930 - thaliaarchi:motor-set-times, r=joboet
motor: Add new `set_times` stubs Motor OS `std` support (#147000) and `set_times`/`set_times_nofollow` (#147468) were merged around the same time, so Motor OS is missing this API and currently fails to build. cc `@lasiotus`
2 parents 9671020 + b39fb32 commit e2110d8

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

library/std/src/sys/fs/motor.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -324,6 +324,14 @@ pub fn set_perm(path: &Path, perm: FilePermissions) -> io::Result<()> {
324324
moto_rt::fs::set_perm(path, perm.rt_perm).map_err(map_motor_error)
325325
}
326326

327+
pub fn set_times(_p: &Path, _times: FileTimes) -> io::Result<()> {
328+
unsupported()
329+
}
330+
331+
pub fn set_times_nofollow(_p: &Path, _times: FileTimes) -> io::Result<()> {
332+
unsupported()
333+
}
334+
327335
pub fn readlink(_p: &Path) -> io::Result<PathBuf> {
328336
unsupported()
329337
}

0 commit comments

Comments
 (0)