From bc0f0444ccb28a2bbe9bfab56b673402c7d799c2 Mon Sep 17 00:00:00 2001 From: Adrian Gunnar Lauterer Date: Sat, 24 Feb 2024 21:53:40 +0100 Subject: [PATCH] fixes MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Daniel Løvbrøtte Olsen Co-authored-by: Eirik Witterso --- src/azul.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/azul.rs b/src/azul.rs index ee3cb0c..8f25aff 100644 --- a/src/azul.rs +++ b/src/azul.rs @@ -858,19 +858,19 @@ enum Policy { } #[derive(Serialize, Deserialize, Clone, Copy)] -#[serde(untagged)] enum Source { #[serde(rename = "market")] Market, + #[serde(untagged)] Factory(usize), } #[derive(Serialize, Deserialize, Clone, Copy)] -#[serde(untagged)] enum Destination { - PatternLine(usize), #[serde(rename = "floor")] Floor, + #[serde(untagged)] + PatternLine(usize), } // Tests