Skip to content

Commit 9aacbba

Browse files
committed
use rust 1.91.1
1 parent 9cbd51f commit 9aacbba

File tree

2 files changed

+3
-8
lines changed

2 files changed

+3
-8
lines changed

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232

3333
- name: Install Rust Stable
3434
env:
35-
RUST_VERSION: "1.87.0"
35+
RUST_VERSION: "1.91.1"
3636
run: |
3737
rustc -vV
3838
rustup toolchain install $RUST_VERSION

src/schema.rs

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -149,9 +149,10 @@ impl Person {
149149
}
150150
}
151151

152-
#[derive(serde_derive::Deserialize, Debug, Copy, Clone, PartialEq, Eq)]
152+
#[derive(serde_derive::Deserialize, Debug, Default, Copy, Clone, PartialEq, Eq)]
153153
#[serde(rename_all = "kebab-case")]
154154
pub(crate) enum TeamKind {
155+
#[default]
155156
Team,
156157
WorkingGroup,
157158
ProjectGroup,
@@ -173,12 +174,6 @@ impl std::fmt::Display for TeamKind {
173174
}
174175
}
175176

176-
impl Default for TeamKind {
177-
fn default() -> Self {
178-
Self::Team
179-
}
180-
}
181-
182177
#[derive(serde_derive::Deserialize, Debug)]
183178
#[serde(deny_unknown_fields, rename_all = "kebab-case")]
184179
pub(crate) struct Team {

0 commit comments

Comments
 (0)