Skip to content

Commit 5387d72

Browse files
committed
style: ignore false-positive lint clippy::duplicated_attributes
1 parent d08ee2f commit 5387d72

File tree

1 file changed

+4
-20
lines changed

1 file changed

+4
-20
lines changed

src/sys/statfs.rs

Lines changed: 4 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,7 @@ pub struct Statfs(type_of_statfs);
5151
type fs_type_t = u32;
5252
#[cfg(target_os = "android")]
5353
type fs_type_t = libc::c_ulong;
54-
#[cfg(all(
55-
target_os = "linux",
56-
target_arch = "s390x",
57-
not(target_env = "musl")
58-
))]
54+
#[cfg(all(target_os = "linux", target_arch = "s390x", not(target_env = "musl")))]
5955
type fs_type_t = libc::c_uint;
6056
#[cfg(all(target_os = "linux", target_env = "musl"))]
6157
type fs_type_t = libc::c_ulong;
@@ -324,11 +320,7 @@ impl Statfs {
324320
}
325321

326322
/// Optimal transfer block size
327-
#[cfg(all(
328-
target_os = "linux",
329-
target_arch = "s390x",
330-
not(target_env = "musl")
331-
))]
323+
#[cfg(all(target_os = "linux", target_arch = "s390x", not(target_env = "musl")))]
332324
pub fn optimal_transfer_size(&self) -> u32 {
333325
self.0.f_bsize
334326
}
@@ -383,11 +375,7 @@ impl Statfs {
383375

384376
/// Size of a block
385377
// f_bsize on linux: https://github.com/torvalds/linux/blob/master/fs/nfs/super.c#L471
386-
#[cfg(all(
387-
target_os = "linux",
388-
target_arch = "s390x",
389-
not(target_env = "musl")
390-
))]
378+
#[cfg(all(target_os = "linux", target_arch = "s390x", not(target_env = "musl")))]
391379
pub fn block_size(&self) -> u32 {
392380
self.0.f_bsize
393381
}
@@ -468,11 +456,7 @@ impl Statfs {
468456
}
469457

470458
/// Maximum length of filenames
471-
#[cfg(all(
472-
target_os = "linux",
473-
target_arch = "s390x",
474-
not(target_env = "musl")
475-
))]
459+
#[cfg(all(target_os = "linux", target_arch = "s390x", not(target_env = "musl")))]
476460
pub fn maximum_name_length(&self) -> u32 {
477461
self.0.f_namelen
478462
}

0 commit comments

Comments
 (0)