mirror of
https://github.com/NotAShelf/mpvrc.git
synced 2026-04-17 08:19:51 +00:00
lib: clippy pedantic
This commit is contained in:
parent
a57692dc39
commit
3d542f5427
1 changed files with 11 additions and 11 deletions
22
src/lib.rs
22
src/lib.rs
|
|
@ -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",
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue