sound: enable workspace-wide lints

Signed-off-by: Manos Pitsidianakis <manos.pitsidianakis@linaro.org>
This commit is contained in:
Manos Pitsidianakis 2025-08-01 21:20:07 +03:00 committed by Stefano Garzarella
parent 28d2836885
commit 9f7b5fa9ea
2 changed files with 9 additions and 7 deletions

View File

@ -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

View File

@ -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")
}
}