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 Oct 1, 2024
1 parent 87e12f2 commit 9116cf8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
5 changes: 1 addition & 4 deletions stremio-core-web/src/model/serialize_meta_details.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,7 @@ use itertools::Itertools;
use serde::Serialize;
use url::Url;
#[cfg(feature = "wasm")]
use {
gloo_utils::format::JsValueSerdeExt, stremio_core::runtime::Env,
wasm_bindgen::JsValue,
};
use {gloo_utils::format::JsValueSerdeExt, stremio_core::runtime::Env, wasm_bindgen::JsValue};

use stremio_core::{
constants::META_RESOURCE_NAME,
Expand Down
6 changes: 5 additions & 1 deletion stremio-core-web/src/model/serialize_player.rs
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,11 @@ mod model {
}

#[cfg(feature = "wasm")]
pub fn serialize_player<E: stremio_core::runtime::Env + 'static>(player: &Player, ctx: &Ctx, streaming_server: &StreamingServer) -> JsValue {
pub fn serialize_player<E: stremio_core::runtime::Env + 'static>(
player: &Player,
ctx: &Ctx,
streaming_server: &StreamingServer,
) -> JsValue {
<JsValue as JsValueSerdeExt>::from_serde(&model::Player {
selected: player.selected.as_ref().map(|selected| model::Selected {
stream: model::Stream {
Expand Down

0 comments on commit 9116cf8

Please sign in to comment.