Skip to content

Commit

Permalink
🐛 Fixed an issue when serializing Sequence<(Vec<ConfigNode>)
Browse files Browse the repository at this point in the history
Temporary fix while waiting for this issue to be resolved: dtolnay/serde-yaml#361
Unfortunately it makes the yaml quite unreadable
  • Loading branch information
gp27 committed Dec 2, 2023
1 parent 7b34c8d commit 22d9ec8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/halley/versions/common/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -58,15 +58,15 @@ pub enum ConfigNode {
Int64(i64),
EntityId(i64),

//#[serde(untagged)] //TODO: set untagged when https://github.com/dtolnay/serde-yaml/issues/361 is fixed
Sequence(Vec<ConfigNode>),
#[serde(untagged)]
Map(ConfigNodeMap),
#[serde(untagged)]
Int(i32),
#[serde(untagged)]
Float(f32),
#[serde(untagged)]
Sequence(Vec<ConfigNode>),
#[serde(untagged)]
Map(ConfigNodeMap),
#[serde(untagged)]
String(String),
#[serde(untagged)]
Bool(bool),
Expand Down

0 comments on commit 22d9ec8

Please sign in to comment.