Skip to content

Commit

Permalink
Make some fields mandatory
Browse files Browse the repository at this point in the history
  • Loading branch information
zbraniecki committed Sep 22, 2020
1 parent 9d9cb3a commit 4353ef3
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions components/data-provider/src/structs/dates.rs
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,7 @@ pub mod gregory {

#[derive(Debug, PartialEq, Clone, Deserialize, Serialize, Default)]
pub struct ContextsV1 {
#[serde(skip_serializing_if = "Option::is_none")]
pub format: Option<WidthsV1>,
pub format: WidthsV1,

#[serde(skip_serializing_if = "Option::is_none")]
pub stand_alone: Option<WidthsV1>,
Expand All @@ -96,11 +95,7 @@ pub mod gregory {

symbols!(weekdays, [Cow<'static, str>; 7]);

symbols!(
day_periods,
am: Cow<'static, str>,
pm: Cow<'static, str>
);
symbols!(day_periods, am: Cow<'static, str>, pm: Cow<'static, str>);

pub mod patterns {
use super::*;
Expand Down

0 comments on commit 4353ef3

Please sign in to comment.