File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -443,7 +443,7 @@ async fn serve_fallback(
443
443
) -> actix_web:: Result < HttpResponse > {
444
444
let catch_all = "404.sql" ;
445
445
446
- let req_path = req_path ( & service_request) ;
446
+ let req_path = req_path ( service_request) ;
447
447
let mut fallback_path_candidate = req_path. clone ( ) . into_owned ( ) ;
448
448
log:: debug!( "Trying to find a {catch_all:?} handler for {fallback_path_candidate:?}" ) ;
449
449
@@ -459,7 +459,7 @@ async fn serve_fallback(
459
459
{
460
460
// Remove the trailing substring behind the current `/`, and append `404.sql`.
461
461
fallback_path_candidate. truncate ( idx) ;
462
- fallback_path_candidate. push_str ( & catch_all) ;
462
+ fallback_path_candidate. push_str ( catch_all) ;
463
463
464
464
// Check if `maybe_fallback_path` actually exists, if not, skip to the next round (which
465
465
// will check `maybe_fallback_path`s parent directory for fallback handler).
You can’t perform that action at this time.
0 commit comments