vhost-device/vhost-device-template
Ruoqing He d43fd79bb7 clippy: Fix clippy::precedence
Fix `clippy::precedence` warnings reported by clippy 0.1.85 (4d91de4e48
2025-02-17).

```console
error: operator precedence can trip the unwary
   --> vhost-device-template/src/vhu_foo.rs:152:9
    |
152 | /         1 << VIRTIO_F_VERSION_1
153 | |             | 1 << VIRTIO_F_NOTIFY_ON_EMPTY
154 | |             | 1 << VIRTIO_RING_F_INDIRECT_DESC
155 | |             | 1 << VIRTIO_RING_F_EVENT_IDX
    | |__________________________________________^
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#precedence
    = note: `-D clippy::precedence` implied by `-D warnings`
    = help: to override `-D warnings` add `#[allow(clippy::precedence)]`
help: consider parenthesizing your expression
    |
152 ~         1 << VIRTIO_F_VERSION_1
153 +             | 1 << VIRTIO_F_NOTIFY_ON_EMPTY
154 +             | 1 << VIRTIO_RING_F_INDIRECT_DESC | (1 << VIRTIO_RING_F_EVENT_IDX)
    |
```

Signed-off-by: Ruoqing He <heruoqing@iscas.ac.cn>
2025-03-31 13:45:27 +02:00
..
src clippy: Fix clippy::precedence 2025-03-31 13:45:27 +02:00
Cargo.toml build(deps): bump the rust-vmm group across 2 directories with 1 update 2025-02-17 10:23:08 +02:00
CHANGELOG.md chore: standardize changelogs 2024-07-24 19:37:19 +05:30
LICENSE-APACHE Add vhost-device-template crate 2023-12-01 15:40:19 +05:30
LICENSE-BSD-3-Clause Add vhost-device-template crate 2023-12-01 15:40:19 +05:30
README.md Add vhost-device-template crate 2023-12-01 15:40:19 +05:30

vhost-device-template - Template for a vhost-device backend implementation

Description

This program is a template for developers who intend to write a new vhost-device backend.

Synopsis

vhost-device-template [OPTIONS]

Options

.. program:: vhost-device-template

.. option:: -h, --help

Print help.

.. option:: -s, --socket-path=PATH

Location of vhost-user Unix domain socket. This supports a single socket / guest.

Examples

The daemon should be started first:

::

host# vhost-device-template --socket-path=vfoo.sock

License

This project is licensed under either of