diff options
| author | Alejandro Soto <alejandro@34project.org> | 2022-01-03 08:16:28 -0600 |
|---|---|---|
| committer | Alejandro Soto <alejandro@34project.org> | 2022-01-03 08:16:28 -0600 |
| commit | 988ce8bbc2a33f6a90adecb7547a88cfbf7acaf2 (patch) | |
| tree | 7477c5b1671c37b60b30abae86e6b4c659ba8b50 /src/fuse | |
| parent | b64ce0506671f72a5142c0e82673331dc687b9e2 (diff) | |
Implement Timestamp::new()
Diffstat (limited to 'src/fuse')
| -rw-r--r-- | src/fuse/io.rs | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/fuse/io.rs b/src/fuse/io.rs index f9fa908..7124fda 100644 --- a/src/fuse/io.rs +++ b/src/fuse/io.rs @@ -8,9 +8,8 @@ use std::{ ops::{ControlFlow, FromResidual, Try}, }; -use crate::{proto, FuseResult, Ino, Timestamp, Ttl}; - use super::{Done, Operation, Reply, Request}; +use crate::{proto, FuseResult, Ino, Timestamp, Ttl}; #[doc(no_inline)] pub use nix::{ @@ -293,9 +292,9 @@ impl Attrs { #[must_use] pub fn times(self, access: Timestamp, modify: Timestamp, change: Timestamp) -> Self { Attrs(proto::Attrs { - atime: access.seconds, - mtime: modify.seconds, - ctime: change.seconds, + atime: access.seconds as _, + mtime: modify.seconds as _, + ctime: change.seconds as _, atimensec: access.nanoseconds, mtimensec: modify.nanoseconds, ctimensec: change.nanoseconds, |
