Skip to content

Commit

Permalink
Merge pull request #298 from Berrysoft/fix/fs-meta-arm-android
Browse files Browse the repository at this point in the history
fix(fs): metadata types on armv7-linux-androideabi
  • Loading branch information
Berrysoft authored Sep 21, 2024
2 parents f7a6022 + 7611264 commit 8b80ec0
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion compio-fs/Cargo.toml
Original file line number Diff line number Diff line change
@@ -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"]
Expand Down
16 changes: 8 additions & 8 deletions compio-fs/src/metadata/unix.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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<SystemTime> {
Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit 8b80ec0

Please sign in to comment.