Skip to content

Commit

Permalink
add #[serde(default)] to prevent missing fields
Browse files Browse the repository at this point in the history
  • Loading branch information
Equim-chan committed Nov 29, 2021
1 parent 356cde1 commit 22a237e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions convlog/src/mjai.rs
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ pub enum Event {
deltas: Option<[i32; 4]>,

#[serde(skip_serializing_if = "Option::is_none")]
#[serde(default)]
#[serde_as(as = "Option<Vec<DisplayFromStr>>")]
ura_markers: Option<Vec<Pai>>,
},
Expand Down

0 comments on commit 22a237e

Please sign in to comment.