Skip to content

Commit e03e86e

Browse files
committed
virtio/balloon: Fix clippy warnings
Signed-off-by: Tyler Fanelli <tfanelli@redhat.com>
1 parent a2d5466 commit e03e86e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/devices/src/virtio/balloon/device.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,10 @@ pub(crate) const PHQ_INDEX: usize = 3;
2828
pub(crate) const FRQ_INDEX: usize = 4;
2929

3030
// Supported features.
31-
pub(crate) const AVAIL_FEATURES: u64 = 1 << uapi::VIRTIO_F_VERSION_1 as u64
32-
| 1 << uapi::VIRTIO_BALLOON_F_STATS_VQ as u64
33-
| 1 << uapi::VIRTIO_BALLOON_F_FREE_PAGE_HINT as u64
34-
| 1 << uapi::VIRTIO_BALLOON_F_REPORTING as u64;
31+
pub(crate) const AVAIL_FEATURES: u64 = 1 << (uapi::VIRTIO_F_VERSION_1 as u64)
32+
| (1 << uapi::VIRTIO_BALLOON_F_STATS_VQ as u64)
33+
| (1 << uapi::VIRTIO_BALLOON_F_FREE_PAGE_HINT as u64)
34+
| (1 << uapi::VIRTIO_BALLOON_F_REPORTING as u64);
3535

3636
#[derive(Copy, Clone, Debug, Default)]
3737
#[repr(C, packed)]

0 commit comments

Comments
 (0)