mirror of
https://github.com/rust-vmm/vhost-device.git
synced 2025-12-26 14:41:23 +00:00
sound: enable workspace-wide lints
Signed-off-by: Manos Pitsidianakis <manos.pitsidianakis@linaro.org>
This commit is contained in:
parent
28d2836885
commit
9f7b5fa9ea
@ -42,3 +42,6 @@ vm-memory = { version = "0.16.1", features = ["backend-mmap", "backend-atomic"]
|
||||
[target.'cfg(target_env = "gnu")'.dev-dependencies]
|
||||
rand = { version = "0.9.2" }
|
||||
rusty-fork = { version = "0.3.0" }
|
||||
|
||||
[lints]
|
||||
workspace = true
|
||||
|
||||
@ -156,21 +156,20 @@ impl PCMState {
|
||||
|
||||
impl std::fmt::Display for PCMState {
|
||||
fn fmt(&self, fmt: &mut std::fmt::Formatter) -> std::fmt::Result {
|
||||
use PCMState::*;
|
||||
match *self {
|
||||
SetParameters => {
|
||||
match self {
|
||||
Self::SetParameters => {
|
||||
write!(fmt, "VIRTIO_SND_R_PCM_SET_PARAMS")
|
||||
}
|
||||
Prepare => {
|
||||
Self::Prepare => {
|
||||
write!(fmt, "VIRTIO_SND_R_PCM_PREPARE")
|
||||
}
|
||||
Release => {
|
||||
Self::Release => {
|
||||
write!(fmt, "VIRTIO_SND_R_PCM_RELEASE")
|
||||
}
|
||||
Start => {
|
||||
Self::Start => {
|
||||
write!(fmt, "VIRTIO_SND_R_PCM_START")
|
||||
}
|
||||
Stop => {
|
||||
Self::Stop => {
|
||||
write!(fmt, "VIRTIO_SND_R_PCM_STOP")
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user