Skip to content

Commit

Permalink
Fix unused_attributes warning
Browse files Browse the repository at this point in the history
```
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 <te316e89@gmail.com>
  • Loading branch information
taiki-e committed May 6, 2022
1 parent 39399ef commit 5c9d5e6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 2 additions & 0 deletions crates/libcgroups/src/lib.rs
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
1 change: 0 additions & 1 deletion crates/libcgroups/src/v2/devices/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;

0 comments on commit 5c9d5e6

Please sign in to comment.