Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(fs): metadata types on armv7-linux-androideabi #298

Merged
merged 2 commits into from
Sep 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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