Skip to content

Commit c749397

Browse files
committed
style: ignore false-positive lint clippy::duplicated_attributes
1 parent 01cd697 commit c749397

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

src/sys/statfs.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,8 @@ type fs_type_t = libc::c_int;
7171
type fs_type_t = libc::__fsword_t;
7272

7373
/// Describes the file system type as known by the operating system.
74+
// false positive, see: https://github.com/rust-lang/rust-clippy/issues/12537
75+
#[allow(clippy::duplicated_attributes)]
7476
#[cfg(any(
7577
target_os = "freebsd",
7678
target_os = "android",

src/sys/time.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ const fn zero_init_timespec() -> timespec {
1212
unsafe { std::mem::transmute([0u8; std::mem::size_of::<timespec>()]) }
1313
}
1414

15+
// false positive, see: https://github.com/rust-lang/rust-clippy/issues/12537
16+
#[allow(clippy::duplicated_attributes)]
1517
#[cfg(any(
1618
all(feature = "time", any(target_os = "android", target_os = "linux")),
1719
all(

0 commit comments

Comments
 (0)