runtime-rs: fix assert error in test in make check

Fix assert error:
error: used `assert_eq!` with a literal bool
   --> crates/hypervisor/src/ch/inner.rs:218:9
    |
218 |         assert_eq!(state.jailed, false);
    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison
    = note: `-D clippy::bool-assert-comparison` implied by `-D warnings`

Fixes: #9042

Signed-off-by: ChengyuZhu6 <chengyu.zhu@intel.com>
This commit is contained in:
ChengyuZhu6 2024-02-07 19:29:49 +08:00
parent d9ce88ada3
commit 34c47e08b2

View File

@ -215,7 +215,7 @@ mod tests {
assert_eq!(state.vm_path, clh.vm_path);
assert_eq!(state.run_dir, clh.run_dir);
assert_eq!(state.guest_protection_to_use, clh.guest_protection_to_use);
assert_eq!(state.jailed, false);
assert!(!state.jailed);
assert_eq!(state.hypervisor_type, HYPERVISOR_NAME_CH.to_string());
let clh = CloudHypervisorInner::restore((), state.clone())