Remove needless borrow (#961)

This commit is contained in:
takumi
2022-04-24 08:03:54 +00:00
committed by GitHub
parent c1b51b5f6e
commit 0d2c61c472
+1 -1
View File
@@ -505,7 +505,7 @@ where
)
}
Err(MatchError::ExtraTrailingSlash) => {
let new_uri = replace_trailing_slash(req.uri(), &path.strip_suffix('/').unwrap());
let new_uri = replace_trailing_slash(req.uri(), path.strip_suffix('/').unwrap());
RouteFuture::from_response(
Redirect::permanent(&new_uri.to_string()).into_response(),