various: remove unused imports and parameters; fix clippy lints

Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: Ia7a4438e1aa73de2ea1bc6cdf26998f06a6a6964
This commit is contained in:
raf 2026-02-05 22:43:25 +03:00
commit 4b375bc546
Signed by: NotAShelf
GPG key ID: 29D95B64378DB4BF
6 changed files with 35 additions and 24 deletions

View file

@ -41,6 +41,24 @@ fn build_app(pool: sqlx::PgPool) -> axum::Router {
fc_server::routes::router(state, &server_config)
}
#[tokio::test]
async fn test_router_no_duplicate_routes() {
let pool = match get_pool().await {
Some(p) => p,
None => return,
};
let config = fc_common::config::Config::default();
let server_config = config.server.clone();
let state = fc_server::state::AppState {
pool,
config,
sessions: std::sync::Arc::new(dashmap::DashMap::new()),
};
let _app = fc_server::routes::router(state, &server_config);
}
fn build_app_with_config(
pool: sqlx::PgPool,
config: fc_common::config::Config,