Skip to content

Commit 2e5d828

Browse files
committed
virtio/console: Fix clippy warnings
Signed-off-by: Tyler Fanelli <[email protected]>
1 parent 324e53a commit 2e5d828

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/devices/src/virtio/console/device.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,9 @@ use crate::virtio::{PortDescription, VmmExitObserver};
3030
pub(crate) const CONTROL_RXQ_INDEX: usize = 2;
3131
pub(crate) const CONTROL_TXQ_INDEX: usize = 3;
3232

33-
pub(crate) const AVAIL_FEATURES: u64 = 1 << uapi::VIRTIO_CONSOLE_F_SIZE as u64
34-
| 1 << uapi::VIRTIO_CONSOLE_F_MULTIPORT as u64
35-
| 1 << uapi::VIRTIO_F_VERSION_1 as u64;
33+
pub(crate) const AVAIL_FEATURES: u64 = (1 << uapi::VIRTIO_CONSOLE_F_SIZE as u64)
34+
| (1 << uapi::VIRTIO_CONSOLE_F_MULTIPORT as u64)
35+
| (1 << uapi::VIRTIO_F_VERSION_1 as u64);
3636

3737
#[repr(C)]
3838
#[derive(Default)]

0 commit comments

Comments
 (0)