Skip to content

Commit

Permalink
try fix longarch CI
Browse files Browse the repository at this point in the history
  • Loading branch information
loongs-zhang committed Nov 24, 2024
1 parent 784600e commit d867e41
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions monoio/src/fs/metadata/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -343,6 +343,8 @@ impl MetadataExt for Metadata {
self.0.stat.st_nlink.into()
}

/// longarch64 need the `into` convert.
#[allow(clippy::useless_conversion)]
#[cfg(not(any(target_arch = "aarch64", target_arch = "riscv64")))]
fn nlink(&self) -> u64 {
self.0.stat.st_nlink.into()
Expand Down

0 comments on commit d867e41

Please sign in to comment.