mirror of
https://codeberg.org/demostf/api-client.git
synced 2026-06-03 16:44:09 +02:00
clippy fixes
This commit is contained in:
parent
5cfd70d583
commit
d32f3674f3
3 changed files with 12 additions and 15 deletions
|
|
@ -270,10 +270,11 @@ pub struct ChatMessage {
|
|||
}
|
||||
|
||||
/// Order for listing demos
|
||||
#[derive(Debug, Clone, Copy, Serialize)]
|
||||
#[derive(Debug, Clone, Copy, Serialize, Default)]
|
||||
#[serde(into = "&str")]
|
||||
pub enum ListOrder {
|
||||
Ascending,
|
||||
#[default]
|
||||
Descending,
|
||||
}
|
||||
|
||||
|
|
@ -290,12 +291,6 @@ pub enum GameType {
|
|||
Fours,
|
||||
}
|
||||
|
||||
impl Default for ListOrder {
|
||||
fn default() -> Self {
|
||||
ListOrder::Descending
|
||||
}
|
||||
}
|
||||
|
||||
impl Display for ListOrder {
|
||||
fn fmt(&self, f: &mut Formatter<'_>) -> fmt::Result {
|
||||
Display::fmt(<&str>::from(*self), f)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue