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
15
flake.lock
generated
15
flake.lock
generated
|
|
@ -44,14 +44,17 @@
|
||||||
"rust-overlay": "rust-overlay"
|
"rust-overlay": "rust-overlay"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1734998048,
|
"lastModified": 1735052218,
|
||||||
"narHash": "sha256-EzIE9/jrgvUdNxvZrjD+qqkH5AHaaEbJDsLDzSuizYw=",
|
"narHash": "sha256-I30wh6G8fSUO4EseexxiDXcxyUhXR6C8BvEeKn6xyfE=",
|
||||||
"path": "/home/robin/Projects/mill-scale",
|
"owner": "icewind1991",
|
||||||
"type": "path"
|
"repo": "mill-scale",
|
||||||
|
"rev": "7e45bb598ff63a8416ee3c26743b20644563bd93",
|
||||||
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
"path": "/home/robin/Projects/mill-scale",
|
"owner": "icewind1991",
|
||||||
"type": "path"
|
"repo": "mill-scale",
|
||||||
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"nixpkgs": {
|
"nixpkgs": {
|
||||||
|
|
|
||||||
|
|
@ -6,8 +6,7 @@
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
};
|
};
|
||||||
mill-scale = {
|
mill-scale = {
|
||||||
# url = "github:icewind1991/mill-scale";
|
url = "github:icewind1991/mill-scale";
|
||||||
url = "path:/home/robin/Projects/mill-scale";
|
|
||||||
inputs.flakelight.follows = "flakelight";
|
inputs.flakelight.follows = "flakelight";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -270,10 +270,11 @@ pub struct ChatMessage {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Order for listing demos
|
/// Order for listing demos
|
||||||
#[derive(Debug, Clone, Copy, Serialize)]
|
#[derive(Debug, Clone, Copy, Serialize, Default)]
|
||||||
#[serde(into = "&str")]
|
#[serde(into = "&str")]
|
||||||
pub enum ListOrder {
|
pub enum ListOrder {
|
||||||
Ascending,
|
Ascending,
|
||||||
|
#[default]
|
||||||
Descending,
|
Descending,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -290,12 +291,6 @@ pub enum GameType {
|
||||||
Fours,
|
Fours,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl Default for ListOrder {
|
|
||||||
fn default() -> Self {
|
|
||||||
ListOrder::Descending
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
impl Display for ListOrder {
|
impl Display for ListOrder {
|
||||||
fn fmt(&self, f: &mut Formatter<'_>) -> fmt::Result {
|
fn fmt(&self, f: &mut Formatter<'_>) -> fmt::Result {
|
||||||
Display::fmt(<&str>::from(*self), f)
|
Display::fmt(<&str>::from(*self), f)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue