chore: clippy suggestions

This commit is contained in:
Per Stark
2025-03-31 12:35:46 +02:00
parent 56a2e1d801
commit 42798788a5
8 changed files with 32 additions and 28 deletions

View File

@@ -38,13 +38,15 @@ macro_rules! create_asset_service {
}};
}
pub type MiddleWareVecType<S> = Vec<Box<dyn FnOnce(Router<S>) -> Router<S> + Send>>;
pub struct RouterFactory<S> {
app_state: HtmlState,
public_routers: Vec<Router<S>>,
protected_routers: Vec<Router<S>>,
nested_routes: Vec<(String, Router<S>)>,
nested_protected_routes: Vec<(String, Router<S>)>,
custom_middleware: Vec<Box<dyn FnOnce(Router<S>) -> Router<S> + Send>>,
custom_middleware: MiddleWareVecType<S>,
public_assets_config: Option<AssetsConfig>,
}