We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 95de86e commit 37da8daCopy full SHA for 37da8da
src/manifest.rs
@@ -28,13 +28,9 @@ pub struct Package {
28
pub publish: bool,
29
}
30
31
+// Do not use enum for edition for future-compatibility.
32
#[derive(Serialize, Deserialize, Debug)]
-pub enum Edition {
33
- #[serde(rename = "2015")]
34
- E2015,
35
- #[serde(rename = "2018")]
36
- E2018,
37
-}
+pub struct Edition(pub String);
38
39
#[derive(Serialize, Debug)]
40
pub struct Bin {
@@ -60,7 +56,7 @@ pub struct Workspace {}
60
56
61
57
impl Default for Edition {
62
58
fn default() -> Self {
63
- Edition::E2018
59
+ Self("2021".into())
64
65
66
0 commit comments