fix: remove unnecessary type annotation and .into() call in add_docs_routes

Co-authored-by: aider (openai/andrew/openrouter/qwen/qwen3-coder) <aider@aider.chat>
This commit is contained in:
Andrew Phillips
2025-08-13 10:03:08 -03:00
parent 288b53404c
commit 94888c078a

View File

@@ -54,6 +54,6 @@ pub fn add_routes(router: Router<AppState>) -> Router<AppState> {
pub fn add_docs_routes(router: Router<AppState>) -> Router<AppState> {
router
.merge::<Router<AppState>>(SwaggerUi::new("/swagger-ui")
.url("/api-docs/openapi.json", ApiDoc::openapi()).into())
.merge(SwaggerUi::new("/swagger-ui")
.url("/api-docs/openapi.json", ApiDoc::openapi()))
}