1
0
mirror of https://github.com/kata-containers/kata-containers.git synced 2025-08-19 00:17:54 +00:00

agent: fix unused_parens lint and stop hiding the warning

Fixes: 

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
src/agent/src

View File

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

View File

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