Skip to content

Commit

Permalink
fix: rustfmt
Browse files Browse the repository at this point in the history
Signed-off-by: Lachezar Lechev <[email protected]>
  • Loading branch information
elpiel committed Jun 14, 2024
1 parent 8267206 commit 8d1c841
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
15 changes: 14 additions & 1 deletion src/model/model.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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::{
Expand Down
3 changes: 2 additions & 1 deletion src/model/serialize_calendar.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ use gloo_utils::format::JsValueSerdeExt;
use wasm_bindgen::JsValue;

pub fn serialize_calendar(calendar: &stremio_core::models::calendar::Calendar) -> JsValue {
<JsValue as JsValueSerdeExt>::from_serde(&Calendar::from(calendar)).expect("JsValue from Calendar")
<JsValue as JsValueSerdeExt>::from_serde(&Calendar::from(calendar))
.expect("JsValue from Calendar")
}

mod model {
Expand Down

0 comments on commit 8d1c841

Please sign in to comment.