From 825d41fa3ac40ec1faf86ce8819dfdbafed6c787 Mon Sep 17 00:00:00 2001 From: Nikita Vilunov Date: Sat, 11 May 2024 14:48:30 +0200 Subject: [PATCH] fmt --- crates/projection-xmpp/src/iq.rs | 2 +- crates/projection-xmpp/src/presence.rs | 2 +- src/http.rs | 6 +----- 3 files changed, 3 insertions(+), 7 deletions(-) diff --git a/crates/projection-xmpp/src/iq.rs b/crates/projection-xmpp/src/iq.rs index 1a22937..d9351bf 100644 --- a/crates/projection-xmpp/src/iq.rs +++ b/crates/projection-xmpp/src/iq.rs @@ -2,8 +2,8 @@ use quick_xml::events::Event; -use lavina_core::LavinaCore; use lavina_core::room::RoomId; +use lavina_core::LavinaCore; use proto_xmpp::bind::{BindRequest, BindResponse, Jid, Name, Server}; use proto_xmpp::client::{Iq, IqError, IqErrorType, IqType}; use proto_xmpp::disco::{Feature, Identity, InfoQuery, Item, ItemQuery}; diff --git a/crates/projection-xmpp/src/presence.rs b/crates/projection-xmpp/src/presence.rs index 4a7dafa..3602cca 100644 --- a/crates/projection-xmpp/src/presence.rs +++ b/crates/projection-xmpp/src/presence.rs @@ -85,9 +85,9 @@ impl<'a> XmppConnection<'a> { #[cfg(test)] mod tests { - use anyhow::Result; use crate::testkit::{expect_user_authenticated, TestServer}; use crate::Authenticated; + use anyhow::Result; use lavina_core::player::PlayerId; use proto_xmpp::bind::{Jid, Name, Resource, Server}; use proto_xmpp::client::Presence; diff --git a/src/http.rs b/src/http.rs index c1c3f8c..bd41b4a 100644 --- a/src/http.rs +++ b/src/http.rs @@ -29,11 +29,7 @@ pub struct ServerConfig { pub listen_on: SocketAddr, } -pub async fn launch( - config: ServerConfig, - metrics: MetricsRegistry, - core: LavinaCore, -) -> Result { +pub async fn launch(config: ServerConfig, metrics: MetricsRegistry, core: LavinaCore) -> Result { log::info!("Starting the http service"); let listener = TcpListener::bind(config.listen_on).await?; log::debug!("Listener started");