mirror of
https://github.com/kata-containers/kata-containers.git
synced 2026-05-14 11:03:31 +00:00
Fix `partialeq_to_none` clippy warning as suggested by rust 1.85.1.
```console
warning: binary comparison to literal `Option::None`
--> src/sandbox.rs:431:16
|
431 | if src_ctrs.get(&shared_mount.src_ctr) == None {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use `Option::is_none()` instead: `src_ctrs.get(&shared_mount.src_ctr).is_none()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#partialeq_to_none
```
Signed-off-by: Ruoqing He <heruoqing@iscas.ac.cn>