mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-05-02 05:34:46 +00:00
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:
parent
f70ca69d0d
commit
8ffe4d6748
@ -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;
|
||||||
|
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user