diff --git a/compio-fs/Cargo.toml b/compio-fs/Cargo.toml index f6946f6a..3f89d1f3 100644 --- a/compio-fs/Cargo.toml +++ b/compio-fs/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "compio-fs" -version = "0.5.0" +version = "0.5.1" description = "Filesystem IO for compio" categories = ["asynchronous", "filesystem"] keywords = ["async", "fs"] diff --git a/compio-fs/src/metadata/unix.rs b/compio-fs/src/metadata/unix.rs index 67c98c2c..59262040 100644 --- a/compio-fs/src/metadata/unix.rs +++ b/compio-fs/src/metadata/unix.rs @@ -46,7 +46,7 @@ impl Metadata { } pub fn file_type(&self) -> FileType { - FileType(self.0.st_mode) + FileType(self.0.st_mode as _) } pub fn is_dir(&self) -> bool { @@ -67,7 +67,7 @@ impl Metadata { } pub fn permissions(&self) -> Permissions { - Permissions(self.0.st_mode) + Permissions(self.0.st_mode as _) } pub fn modified(&self) -> io::Result { @@ -146,27 +146,27 @@ impl MetadataExt for Metadata { } fn atime(&self) -> i64 { - self.0.st_atime + self.0.st_atime as _ } fn atime_nsec(&self) -> i64 { - self.0.st_atime_nsec + self.0.st_atime_nsec as _ } fn mtime(&self) -> i64 { - self.0.st_mtime + self.0.st_mtime as _ } fn mtime_nsec(&self) -> i64 { - self.0.st_mtime_nsec + self.0.st_mtime_nsec as _ } fn ctime(&self) -> i64 { - self.0.st_ctime + self.0.st_ctime as _ } fn ctime_nsec(&self) -> i64 { - self.0.st_ctime_nsec + self.0.st_ctime_nsec as _ } fn blksize(&self) -> u64 {