mirror of
https://github.com/kata-containers/kata-containers.git
synced 2026-05-13 02:30:07 +00:00
Manually fix `question_mark` clippy warning reported by rust 1.85.1.
```console
error: this `match` expression can be replaced with `?`
--> src/ops/check_ops.rs:49:13
|
49 | let f = match get_builtin_check_func(check) {
| _____________^
50 | | Ok(fp) => fp,
51 | | Err(e) => return Err(e),
52 | | };
| |_____^ help: try instead: `get_builtin_check_func(check)?`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#question_mark
= note: `-D clippy::question-mark` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::question_mark)]`
```
Signed-off-by: Ruoqing He <heruoqing@iscas.ac.cn>