lib: clippy pedantic

This commit is contained in:
raf 2024-12-15 20:45:36 +03:00
commit 3d542f5427
Signed by: NotAShelf
GPG key ID: AF26552424E53993

View file

@ -143,18 +143,18 @@ impl MpvCommand {
/// ///
/// # Returns /// # Returns
/// A string slice representing the command. /// A string slice representing the command.
pub fn as_str(&self) -> &str { #[must_use] pub const fn as_str(&self) -> &str {
match self { match self {
MpvCommand::SetProperty => "set_property", Self::SetProperty => "set_property",
MpvCommand::PlaylistNext => "playlist-next", Self::PlaylistNext => "playlist-next",
MpvCommand::PlaylistPrev => "playlist-prev", Self::PlaylistPrev => "playlist-prev",
MpvCommand::Seek => "seek", Self::Seek => "seek",
MpvCommand::Quit => "quit", Self::Quit => "quit",
MpvCommand::PlaylistMove => "playlist-move", Self::PlaylistMove => "playlist-move",
MpvCommand::PlaylistRemove => "playlist-remove", Self::PlaylistRemove => "playlist-remove",
MpvCommand::PlaylistClear => "playlist-clear", Self::PlaylistClear => "playlist-clear",
MpvCommand::GetProperty => "get_property", Self::GetProperty => "get_property",
MpvCommand::LoadFile => "loadfile", Self::LoadFile => "loadfile",
} }
} }
} }