Skip to content

Commit b552c83

Browse files
committed
Disable false-positive clippy lint
See rust-lang/rust-clippy#12537.
1 parent 0a32dac commit b552c83

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test/integration-test/src/tests/btf_relocations.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
use aya::{maps::Array, programs::UProbe, util::KernelVersion, Btf, EbpfLoader, Endianness};
22
use test_case::test_case;
33

4+
// False positive, see: https://github.com/rust-lang/rust-clippy/issues/12537.
5+
#[allow(clippy::duplicated_attributes)]
46
#[test_case("enum_signed_32", false, Some((KernelVersion::new(6, 0, 0), "https://github.com/torvalds/linux/commit/6089fb3")), -0x7AAAAAAAi32 as u64)]
57
#[test_case("enum_signed_32", true, Some((KernelVersion::new(6, 0, 0), "https://github.com/torvalds/linux/commit/6089fb3")), -0x7BBBBBBBi32 as u64)]
68
#[test_case("enum_signed_32_checked_variants", false, Some((KernelVersion::new(6, 0, 0), "https://github.com/torvalds/linux/commit/6089fb3")), -0x7AAAAAAAi32 as u64)]

0 commit comments

Comments
 (0)