File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
cap-primitives/src/rustix/linux/fs Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 33
44use super :: procfs:: set_times_through_proc_self_fd;
55use crate :: fs:: { open, OpenOptions , SystemTimeSpec } ;
6- use fs_set_times:: SetTimes ;
76use std:: path:: Path ;
87use std:: { fs, io} ;
98
@@ -17,7 +16,8 @@ pub(crate) fn set_times_impl(
1716 // access, so first try write.
1817 match open ( start, path, OpenOptions :: new ( ) . write ( true ) ) {
1918 Ok ( file) => {
20- return file. set_times (
19+ return fs_set_times:: SetTimes :: set_times (
20+ & file,
2121 atime. map ( SystemTimeSpec :: into_std) ,
2222 mtime. map ( SystemTimeSpec :: into_std) ,
2323 )
@@ -31,7 +31,8 @@ pub(crate) fn set_times_impl(
3131 // Next try read.
3232 match open ( start, path, OpenOptions :: new ( ) . read ( true ) ) {
3333 Ok ( file) => {
34- return file. set_times (
34+ return fs_set_times:: SetTimes :: set_times (
35+ & file,
3536 atime. map ( SystemTimeSpec :: into_std) ,
3637 mtime. map ( SystemTimeSpec :: into_std) ,
3738 )
You can’t perform that action at this time.
0 commit comments