various: remove unused imports and parameters; fix clippy lints
Signed-off-by: NotAShelf <raf@notashelf.dev> Change-Id: Ia7a4438e1aa73de2ea1bc6cdf26998f06a6a6964
This commit is contained in:
parent
dec4753567
commit
4b375bc546
6 changed files with 35 additions and 24 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue