Skip to content

Commit 8cd5d6b

Browse files
authored
Merge pull request #2128 from rust-lang/use-rust-1-91-1
use rust 1.91.1
2 parents 968f902 + 9aacbba commit 8cd5d6b

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
@@ -154,9 +154,10 @@ impl Person {
154154
}
155155
}
156156

157-
#[derive(serde_derive::Deserialize, Debug, Copy, Clone, PartialEq, Eq)]
157+
#[derive(serde_derive::Deserialize, Debug, Default, Copy, Clone, PartialEq, Eq)]
158158
#[serde(rename_all = "kebab-case")]
159159
pub(crate) enum TeamKind {
160+
#[default]
160161
Team,
161162
WorkingGroup,
162163
ProjectGroup,
@@ -178,12 +179,6 @@ impl std::fmt::Display for TeamKind {
178179
}
179180
}
180181

181-
impl Default for TeamKind {
182-
fn default() -> Self {
183-
Self::Team
184-
}
185-
}
186-
187182
#[derive(serde_derive::Deserialize, Debug)]
188183
#[serde(deny_unknown_fields, rename_all = "kebab-case")]
189184
pub(crate) struct Team {

0 commit comments

Comments
 (0)