From 5c9d5e6dcdd674578699f7c9f68f0825585a509f Mon Sep 17 00:00:00 2001 From: Taiki Endo Date: Sat, 7 May 2022 04:49:03 +0900 Subject: [PATCH] Fix unused_attributes warning ``` warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![foo]` --> crates/libcgroups/src/v2/devices/mod.rs:8:22 | 8 | #[cfg_attr(coverage, feature(no_coverage))] | ^^^^^^^^^^^^^^^^^^^^ | = note: `#[warn(unused_attributes)]` on by default ``` Signed-off-by: Taiki Endo --- crates/libcgroups/src/lib.rs | 2 ++ crates/libcgroups/src/v2/devices/mod.rs | 1 - 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/crates/libcgroups/src/lib.rs b/crates/libcgroups/src/lib.rs index f7e82c2cef..25d0d5dd21 100644 --- a/crates/libcgroups/src/lib.rs +++ b/crates/libcgroups/src/lib.rs @@ -1,3 +1,5 @@ +#![cfg_attr(coverage, feature(no_coverage))] + //! Control groups provide a way of controlling groups of processes. //! Examples: controlling resource limits, execution priority, measuring resource usage, //! freezing, checkpointing and restarting groups of processes. diff --git a/crates/libcgroups/src/v2/devices/mod.rs b/crates/libcgroups/src/v2/devices/mod.rs index 954602cbea..d3acea3883 100644 --- a/crates/libcgroups/src/v2/devices/mod.rs +++ b/crates/libcgroups/src/v2/devices/mod.rs @@ -5,7 +5,6 @@ pub mod program; #[cfg(test)] #[allow(clippy::too_many_arguments)] -#[cfg_attr(coverage, feature(no_coverage))] pub mod mocks; pub use controller::Devices;