From 33a6eb0cf361f2cc2c90dbaa3a626494a0ad2fc5 Mon Sep 17 00:00:00 2001 From: Toshit Chawda Date: Sat, 7 Sep 2024 13:35:34 -0700 Subject: [PATCH] cargo fmt --- server/src/config.rs | 5 ++++- server/src/handle/mod.rs | 4 ++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/server/src/config.rs b/server/src/config.rs index 0792618..16c125e 100644 --- a/server/src/config.rs +++ b/server/src/config.rs @@ -353,7 +353,10 @@ impl Config { #[cfg(feature = "yaml")] ConfigFormat::Yaml => serde_yaml::from_str(&string)?, #[cfg(not(any(feature = "toml", feature = "json", feature = "yaml")))] - ConfigFormat::None => { let _ = string; Self::default() }, + ConfigFormat::None => { + let _ = string; + Self::default() + } }) } } diff --git a/server/src/handle/mod.rs b/server/src/handle/mod.rs index a01971a..2ad7f43 100644 --- a/server/src/handle/mod.rs +++ b/server/src/handle/mod.rs @@ -1,7 +1,7 @@ -mod wisp; -mod wsproxy; #[cfg(feature = "twisp")] pub mod twisp; +mod wisp; +mod wsproxy; pub use wisp::handle_wisp; pub use wsproxy::handle_wsproxy;