From 5387d720fb569b2b2beedf5fbab2e266bca53501 Mon Sep 17 00:00:00 2001 From: Steve Lau Date: Sun, 24 Mar 2024 08:15:41 +0800 Subject: [PATCH] style: ignore false-positive lint clippy::duplicated_attributes --- src/sys/statfs.rs | 24 ++++-------------------- 1 file changed, 4 insertions(+), 20 deletions(-) diff --git a/src/sys/statfs.rs b/src/sys/statfs.rs index d63f51aff7..1150a0f9dc 100644 --- a/src/sys/statfs.rs +++ b/src/sys/statfs.rs @@ -51,11 +51,7 @@ pub struct Statfs(type_of_statfs); type fs_type_t = u32; #[cfg(target_os = "android")] type fs_type_t = libc::c_ulong; -#[cfg(all( - target_os = "linux", - target_arch = "s390x", - not(target_env = "musl") -))] +#[cfg(all(target_os = "linux", target_arch = "s390x", not(target_env = "musl")))] type fs_type_t = libc::c_uint; #[cfg(all(target_os = "linux", target_env = "musl"))] type fs_type_t = libc::c_ulong; @@ -324,11 +320,7 @@ impl Statfs { } /// Optimal transfer block size - #[cfg(all( - target_os = "linux", - target_arch = "s390x", - not(target_env = "musl") - ))] + #[cfg(all(target_os = "linux", target_arch = "s390x", not(target_env = "musl")))] pub fn optimal_transfer_size(&self) -> u32 { self.0.f_bsize } @@ -383,11 +375,7 @@ impl Statfs { /// Size of a block // f_bsize on linux: https://github.com/torvalds/linux/blob/master/fs/nfs/super.c#L471 - #[cfg(all( - target_os = "linux", - target_arch = "s390x", - not(target_env = "musl") - ))] + #[cfg(all(target_os = "linux", target_arch = "s390x", not(target_env = "musl")))] pub fn block_size(&self) -> u32 { self.0.f_bsize } @@ -468,11 +456,7 @@ impl Statfs { } /// Maximum length of filenames - #[cfg(all( - target_os = "linux", - target_arch = "s390x", - not(target_env = "musl") - ))] + #[cfg(all(target_os = "linux", target_arch = "s390x", not(target_env = "musl")))] pub fn maximum_name_length(&self) -> u32 { self.0.f_namelen }