fix clippy

This commit is contained in:
Evan Almloff committed 2023-11-15 09:30:15 -06:00
1 parent 9bb464dd7d
commit e11f3fdc48
5 files changed
+6 -9

No files matched your search

+1 -4
View File
@@ -313,10 +313,7 @@ async fn setup_router(
router = if let Some(base_path) = config.dioxus_config.web.app.base_path.clone() {
let base_path = format!("/{}", base_path.trim_matches('/'));
Router::new()
.nest(
&base_path,
axum::routing::any_service(router),
)
.nest(&base_path, axum::routing::any_service(router))
.fallback(get(move || {
let base_path = base_path.clone();
async move { format!("Outside of the base path: {}", base_path) }
+2 -2
View File
@@ -1,6 +1,6 @@
use crate::{Result,};
use crate::Result;
use dioxus_cli_config::WebProxyConfig;
use anyhow::Context;
use axum::{http::StatusCode, routing::any, Router};
use hyper::{Request, Response, Uri};