Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Manishearth committed Oct 20, 2023
1 parent d1ccbe2 commit bf8d8ab
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions components/datetime/src/provider/neo.rs
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,7 @@ pub enum MonthSymbolsV1<'data> {
#[yoke(prove_covariance_manually)]
pub struct LinearSymbolsV1<'data> {
#[cfg_attr(feature = "serde", serde(borrow))]
/// The symbols, in order. Order specified on the struct docs.
// This uses a VarZeroVec rather than a fixed-size array for weekdays to save stack space
pub symbols: VarZeroVec<'data, str>,
}
Expand Down Expand Up @@ -161,6 +162,7 @@ pub struct LinearSymbolsV1<'data> {
#[cfg_attr(feature = "serde", derive(serde::Deserialize))]
#[yoke(prove_covariance_manually)]
pub struct PatternV1<'data> {
/// The pattern
#[cfg_attr(feature = "serde", serde(borrow))]
pub pattern: runtime::Pattern<'data>,
}
Expand All @@ -182,6 +184,7 @@ pub struct PatternV1<'data> {
#[cfg_attr(feature = "serde", derive(serde::Deserialize))]
#[yoke(prove_covariance_manually)]
pub struct PreferredHourCycleV1 {
/// The hour cycle preference
pub cycle: pattern::CoarseHourCycle,
}

Expand All @@ -204,6 +207,7 @@ pub struct PreferredHourCycleV1 {
#[cfg_attr(feature = "serde", derive(serde::Deserialize))]
#[yoke(prove_covariance_manually)]
pub struct DateTimePatternV1<'data> {
/// The pattern
#[cfg_attr(feature = "serde", serde(borrow))]
pub pattern: runtime::GenericPattern<'data>,
}

0 comments on commit bf8d8ab

Please sign in to comment.