From 22b9074ddd27e1eedcfdfdc7634d0ad90192045c Mon Sep 17 00:00:00 2001 From: Vladimir Borisov Date: Thu, 7 Mar 2024 17:47:32 +0200 Subject: [PATCH] Fix formatting --- build.rs | 6 ++++-- src/stremio_app/mod.rs | 24 ++++++++++++------------ src/stremio_app/stremio_player/mod.rs | 18 +++++++++--------- 3 files changed, 25 insertions(+), 23 deletions(-) diff --git a/build.rs b/build.rs index 6fddd86..14bffca 100644 --- a/build.rs +++ b/build.rs @@ -7,7 +7,8 @@ fn main() { let copyright = format!("Copyright © {} Smart Code OOD", now.year()); let exe_name = format!("{}.exe", env::var("CARGO_PKG_NAME").unwrap()); let mut res = winres::WindowsResource::new(); - res.set_manifest(r#" + res.set_manifest( + r#" @@ -23,7 +24,8 @@ fn main() { - "#); + "#, + ); res.set("FileDescription", "Freedom to Stream"); res.set("LegalCopyright", ©right); res.set("OriginalFilename", &exe_name); diff --git a/src/stremio_app/mod.rs b/src/stremio_app/mod.rs index cd539a3..d9df9f5 100644 --- a/src/stremio_app/mod.rs +++ b/src/stremio_app/mod.rs @@ -1,12 +1,12 @@ -pub mod app; -pub use app::MainWindow; -pub mod stremio_wevbiew; -pub mod stremio_player; -pub mod stremio_server; -pub mod ipc; -pub use ipc::RPCResponse; -pub mod systray; -pub mod splash; -pub mod window_helper; -pub mod named_pipe; -pub use named_pipe::{PipeClient, PipeServer}; +pub mod app; +pub use app::MainWindow; +pub mod ipc; +pub mod stremio_player; +pub mod stremio_server; +pub mod stremio_wevbiew; +pub use ipc::RPCResponse; +pub mod named_pipe; +pub mod splash; +pub mod systray; +pub mod window_helper; +pub use named_pipe::{PipeClient, PipeServer}; diff --git a/src/stremio_app/stremio_player/mod.rs b/src/stremio_app/stremio_player/mod.rs index b577133..06da418 100644 --- a/src/stremio_app/stremio_player/mod.rs +++ b/src/stremio_app/stremio_player/mod.rs @@ -1,9 +1,9 @@ -pub mod player; -pub use player::Player; -pub mod communication; -pub use communication::{ - CmdVal, InMsg, InMsgArgs, InMsgFn, PlayerEnded, - PlayerEvent, PlayerProprChange, PlayerResponse, PropKey, PropVal, -}; -#[cfg(test)] -mod communication_tests; +pub mod player; +pub use player::Player; +pub mod communication; +pub use communication::{ + CmdVal, InMsg, InMsgArgs, InMsgFn, PlayerEnded, PlayerEvent, PlayerProprChange, PlayerResponse, + PropKey, PropVal, +}; +#[cfg(test)] +mod communication_tests;