Skip to content

Commit e247adb

Browse files
sypharGuillaumeGomez
authored andcommitted
upgrade to rust 1.91, fix new clippy errors
1 parent cdf47ec commit e247adb

File tree

2 files changed

+4
-9
lines changed

2 files changed

+4
-9
lines changed

rust-toolchain.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
[toolchain]
2-
channel = "1.90.0"
2+
channel = "1.91.0"
33
components = ["rustfmt", "clippy"]

src/web/releases.rs

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -53,20 +53,15 @@ pub struct Release {
5353
pub(crate) href: Option<&'static str>,
5454
}
5555

56-
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
56+
#[derive(Debug, Copy, Clone, PartialEq, Eq, Default)]
5757
pub(crate) enum Order {
58-
ReleaseTime, // this is default order
58+
#[default]
59+
ReleaseTime,
5960
GithubStars,
6061
RecentFailures,
6162
FailuresByGithubStars,
6263
}
6364

64-
impl Default for Order {
65-
fn default() -> Self {
66-
Self::ReleaseTime
67-
}
68-
}
69-
7065
pub(crate) async fn get_releases(
7166
conn: &mut sqlx::PgConnection,
7267
page: i64,

0 commit comments

Comments
 (0)