From 19756f4359bbd897ec6c2ebc0ba52c13f2e8e81f Mon Sep 17 00:00:00 2001 From: David Tolnay Date: Fri, 19 Apr 2024 20:55:46 -0700 Subject: [PATCH] Resolve duplicated_attributes clippy lint in test warning: duplicated attribute --> tests/common/mod.rs:1:10 | 1 | #![allow(dead_code)] | ^^^^^^^^^ | note: first defined here --> tests/test_precedence.rs:55:9 | 55 | #[allow(dead_code)] | ^^^^^^^^^ help: remove this attribute --> tests/common/mod.rs:1:10 | 1 | #![allow(dead_code)] | ^^^^^^^^^ = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#duplicated_attributes = note: `-W clippy::duplicated-attributes` implied by `-W clippy::all` = help: to override `-W clippy::all` add `#[allow(clippy::duplicated_attributes)]` warning: duplicated attribute --> tests/common/mod.rs:1:10 | 1 | #![allow(dead_code)] | ^^^^^^^^^ | note: first defined here --> tests/test_round_trip.rs:47:9 | 47 | #[allow(dead_code)] | ^^^^^^^^^ help: remove this attribute --> tests/common/mod.rs:1:10 | 1 | #![allow(dead_code)] | ^^^^^^^^^ = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#duplicated_attributes = note: `-W clippy::duplicated-attributes` implied by `-W clippy::all` = help: to override `-W clippy::all` add `#[allow(clippy::duplicated_attributes)]` --- tests/test_precedence.rs | 2 -- tests/test_round_trip.rs | 2 -- 2 files changed, 4 deletions(-) diff --git a/tests/test_precedence.rs b/tests/test_precedence.rs index e6b43fd2f..89a38d151 100644 --- a/tests/test_precedence.rs +++ b/tests/test_precedence.rs @@ -52,9 +52,7 @@ use std::sync::atomic::{AtomicUsize, Ordering}; #[macro_use] mod macros; -#[allow(dead_code)] mod common; - mod repo; #[test] diff --git a/tests/test_round_trip.rs b/tests/test_round_trip.rs index 0787551e3..8a7529ea5 100644 --- a/tests/test_round_trip.rs +++ b/tests/test_round_trip.rs @@ -44,9 +44,7 @@ use std::time::Instant; #[macro_use] mod macros; -#[allow(dead_code)] mod common; - mod repo; #[test]