From a25e143b55e9c3f41fddadba788d40644ac24ed6 Mon Sep 17 00:00:00 2001 From: pjht Date: Mon, 14 Oct 2024 13:52:16 -0500 Subject: [PATCH] Clean up server imports & format code --- server/Cargo.toml | 3 --- server/src/main.rs | 4 +--- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/server/Cargo.toml b/server/Cargo.toml index dba089e..7eeea5b 100644 --- a/server/Cargo.toml +++ b/server/Cargo.toml @@ -4,11 +4,8 @@ version = "0.1.0" edition = "2021" [dependencies] -async-trait = "0.1.83" axum = { version = "0.7.7", features = ["ws"] } -axum-client-ip = "0.6.1" axum-login = "0.16.0" -axum_static = "1.7.1" ciborium = "0.2.2" clap = { version = "4.5.19", features = ["derive"] } common = { version = "0.1.0", path = "../common" } diff --git a/server/src/main.rs b/server/src/main.rs index 553c283..a0ead16 100644 --- a/server/src/main.rs +++ b/server/src/main.rs @@ -7,9 +7,7 @@ use axum::http::StatusCode; use axum::response::{IntoResponse, Response}; use axum::routing::post; use axum::{routing::get, Router}; -use axum_login::{ - login_required, AuthManagerLayerBuilder, AuthSession, AuthUser, AuthnBackend, UserId, -}; +use axum_login::{AuthManagerLayerBuilder, AuthSession, AuthUser, AuthnBackend, UserId}; use clap::Parser; use common::ChatMessage; use futures::stream::SplitSink;