Skip to content

Commit

Permalink
fix(fs): metadata types on armv7-linux-androideabi
Browse files Browse the repository at this point in the history
  • Loading branch information
Berrysoft committed Sep 21, 2024
1 parent 8b22edf commit 5ee6750
Showing 1 changed file with 8 additions and 8 deletions.
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 5ee6750

Please sign in to comment.