mirror of
https://github.com/rust-vmm/vhost-device.git
synced 2025-12-28 16:29:45 +00:00
Fix `clippy::question_mark` warnings reported by clippy 0.1.85
(4d91de4e48 2025-02-17).
```console
error: this `match` expression can be replaced with `?`
--> vhost-device-can/src/main.rs:77:27
|
77 | let can_devices = match parse_can_devices(&args) {
| ___________________________^
78 | | Ok(can_devs) => can_devs,
79 | | Err(e) => return Err(e),
80 | | };
| |_________^ help: try instead: `parse_can_devices(&args)?`
|
= 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>
|
||
|---|---|---|
| .. | ||
| backend.rs | ||
| can.rs | ||
| main.rs | ||
| vhu_can.rs | ||
| virtio_can.rs | ||