agent: fix unused_parens lint and stop hiding the warning

Fixes: #1359

Signed-off-by: Tim Zhang <tim@hyper.sh>
This commit is contained in:
Tim Zhang 2021-02-04 21:24:04 +08:00
parent f70ca69d0d
commit 8ffe4d6748
2 changed files with 1 additions and 2 deletions

View File

@ -4,7 +4,6 @@
//
#![allow(non_camel_case_types)]
#![allow(unused_parens)]
#[macro_use]
extern crate lazy_static;
extern crate oci;

View File

@ -380,7 +380,7 @@ fn online_cpus(logger: &Logger, num: i32) -> Result<i32> {
logger,
SYSFS_CPU_ONLINE_PATH,
r"cpu[0-9]+",
(num - onlined_count),
num - onlined_count,
);
if r.is_err() {
return r;