From 8d1c8413228c4ca1e97515ede0b3a558cfed4b57 Mon Sep 17 00:00:00 2001 From: Lachezar Lechev Date: Fri, 14 Jun 2024 14:10:36 +0300 Subject: [PATCH] fix: rustfmt Signed-off-by: Lachezar Lechev --- src/model/model.rs | 15 ++++++++++++++- src/model/serialize_calendar.rs | 3 ++- 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/src/model/model.rs b/src/model/model.rs index a162f76..7108f83 100644 --- a/src/model/model.rs +++ b/src/model/model.rs @@ -6,7 +6,20 @@ use wasm_bindgen::JsValue; use stremio_core::{ models::{ - addon_details::AddonDetails, calendar::Calendar, catalog_with_filters::CatalogWithFilters, catalogs_with_extra::CatalogsWithExtra, continue_watching_preview::ContinueWatchingPreview, ctx::Ctx, data_export::DataExport, installed_addons_with_filters::InstalledAddonsWithFilters, library_with_filters::{ContinueWatchingFilter, LibraryWithFilters, NotRemovedFilter}, link::Link, local_search::LocalSearch, meta_details::MetaDetails, player::Player, streaming_server::StreamingServer + addon_details::AddonDetails, + calendar::Calendar, + catalog_with_filters::CatalogWithFilters, + catalogs_with_extra::CatalogsWithExtra, + continue_watching_preview::ContinueWatchingPreview, + ctx::Ctx, + data_export::DataExport, + installed_addons_with_filters::InstalledAddonsWithFilters, + library_with_filters::{ContinueWatchingFilter, LibraryWithFilters, NotRemovedFilter}, + link::Link, + local_search::LocalSearch, + meta_details::MetaDetails, + player::Player, + streaming_server::StreamingServer, }, runtime::Effects, types::{ diff --git a/src/model/serialize_calendar.rs b/src/model/serialize_calendar.rs index 92f05fb..3dba114 100644 --- a/src/model/serialize_calendar.rs +++ b/src/model/serialize_calendar.rs @@ -4,7 +4,8 @@ use gloo_utils::format::JsValueSerdeExt; use wasm_bindgen::JsValue; pub fn serialize_calendar(calendar: &stremio_core::models::calendar::Calendar) -> JsValue { - ::from_serde(&Calendar::from(calendar)).expect("JsValue from Calendar") + ::from_serde(&Calendar::from(calendar)) + .expect("JsValue from Calendar") } mod model {