Skip to content

Commit

Permalink
refactor(serialize_calendar): remove selected bool for prev / next
Browse files Browse the repository at this point in the history
  • Loading branch information
tymmesyde committed Jun 18, 2024
1 parent b5806d1 commit 5d53418
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/model/serialize_calendar.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ mod model {
pub struct SelectableDate<'a> {
#[serde(flatten)]
pub date: &'a Date,
pub selected: bool,
pub deep_links: CalendarDeepLinks,
}

Expand All @@ -65,13 +64,11 @@ pub fn serialize_calendar(calendar: &stremio_core::models::calendar::Calendar) -
selectable: model::Selectable {
prev: model::SelectableDate {
date: &calendar.selectable.prev,
selected: true,
deep_links: CalendarDeepLinks::from(&calendar.selectable.prev)
.into_web_deep_links(),
},
next: model::SelectableDate {
date: &calendar.selectable.next,
selected: true,
deep_links: CalendarDeepLinks::from(&calendar.selectable.next)
.into_web_deep_links(),
},
Expand Down

0 comments on commit 5d53418

Please sign in to comment.