mirror of
https://chromium.googlesource.com/crosvm/crosvm
synced 2025-02-05 18:20:34 +00:00
linux.rs: add clippy allow for manual_map
This only triggers when the powerd support is compiled out, so just ignore it. While we're here, fix the name of the power-monitor-powerd feature in the line just below (drop the extra "d"); it would always apply, since the feature name was misspelled. BUG=b:197251702 TEST=bin/clippy # with rust-toolchain = 1.54.0 Change-Id: I1b8ef3732c3d5968a9e230216f8f727bd1445609 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/3108612 Tested-by: kokoro <noreply+kokoro@google.com> Commit-Queue: Daniel Verkamp <dverkamp@chromium.org> Reviewed-by: Allen Webb <allenwebb@google.com>
This commit is contained in:
parent
5e9959e8f5
commit
cfe494661d
1 changed files with 2 additions and 1 deletions
|
@ -2371,8 +2371,9 @@ where
|
|||
}
|
||||
|
||||
let battery = if cfg.battery_type.is_some() {
|
||||
#[cfg_attr(not(feature = "power-monitor-powerd"), allow(clippy::manual_map))]
|
||||
let jail = match simple_jail(&cfg, "battery")? {
|
||||
#[cfg_attr(not(feature = "powerd-monitor-powerd"), allow(unused_mut))]
|
||||
#[cfg_attr(not(feature = "power-monitor-powerd"), allow(unused_mut))]
|
||||
Some(mut jail) => {
|
||||
// Setup a bind mount to the system D-Bus socket if the powerd monitor is used.
|
||||
#[cfg(feature = "power-monitor-powerd")]
|
||||
|
|
Loading…
Reference in a new issue