Skip to content

Commit

Permalink
Add support for Rust 2024 edition (#95)
Browse files Browse the repository at this point in the history
  • Loading branch information
kpcyrd authored Nov 11, 2024
1 parent 0925e0f commit abfbbdb
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/cm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -577,6 +577,9 @@ pub enum Edition {
/// Edition 2021
#[serde(rename = "2021")]
E2021,
/// Edition 2024
#[serde(rename = "2024")]
E2024,
}

impl Edition {
Expand All @@ -586,6 +589,7 @@ impl Edition {
Self::E2015 => "2015",
Self::E2018 => "2018",
Self::E2021 => "2021",
Self::E2024 => "2024",
}
}
}
Expand Down

0 comments on commit abfbbdb

Please sign in to comment.