mirror of
https://github.com/tokio-rs/axum.git
synced 2026-08-28 00:00:20 +02:00
Use implicit format-args captures where applicable (#1709)
This commit is contained in:
@@ -313,7 +313,7 @@ where
|
||||
if let Some(path_without_trailing_slash) = path.strip_suffix('/') {
|
||||
router.route(path_without_trailing_slash, any(redirect_handler))
|
||||
} else {
|
||||
router.route(&format!("{}/", path), any(redirect_handler))
|
||||
router.route(&format!("{path}/"), any(redirect_handler))
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user