From 7f3109cd21a0f146b8a98529029b0eaeffa5be4c Mon Sep 17 00:00:00 2001 From: kpcyrd Date: Mon, 11 Nov 2024 12:21:57 +0100 Subject: [PATCH] Add support for Rust 2024 edition --- src/cm.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/cm.rs b/src/cm.rs index 978547e..9f92916 100644 --- a/src/cm.rs +++ b/src/cm.rs @@ -577,6 +577,9 @@ pub enum Edition { /// Edition 2021 #[serde(rename = "2021")] E2021, + /// Edition 2024 + #[serde(rename = "2024")] + E2024, } impl Edition { @@ -586,6 +589,7 @@ impl Edition { Self::E2015 => "2015", Self::E2018 => "2018", Self::E2021 => "2021", + Self::E2024 => "2024", } } }