We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 8dda069 + 03fa7ac commit 523692bCopy full SHA for 523692b
gix-index/src/fs.rs
@@ -56,7 +56,10 @@ impl Metadata {
56
{
57
Some(system_time_from_secs_nanos(
58
self.0.st_mtime.try_into().ok()?,
59
+ #[cfg(not(target_os = "netbsd"))]
60
self.0.st_mtime_nsec.try_into().ok()?,
61
+ #[cfg(target_os = "netbsd")]
62
+ self.0.st_mtimensec.try_into().ok()?,
63
))
64
}
65
#[cfg(windows)]
@@ -72,7 +75,10 @@ impl Metadata {
72
75
73
76
74
77
self.0.st_ctime.try_into().ok()?,
78
79
self.0.st_ctime_nsec.try_into().ok()?,
80
81
+ self.0.st_ctimensec.try_into().ok()?,
82
83
84
0 commit comments