Skip to content

Commit

Permalink
clippy fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
icewind1991 committed Dec 24, 2024
1 parent 5cfd70d commit d32f367
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 15 deletions.
15 changes: 9 additions & 6 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@
inputs.nixpkgs.follows = "nixpkgs";
};
mill-scale = {
# url = "github:icewind1991/mill-scale";
url = "path:/home/robin/Projects/mill-scale";
url = "github:icewind1991/mill-scale";
inputs.flakelight.follows = "flakelight";
};
};
Expand Down
9 changes: 2 additions & 7 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
}

Expand All @@ -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)
Expand Down

0 comments on commit d32f367

Please sign in to comment.