Skip to content

Commit 0b93108

Browse files
committed
clippy fixes
1 parent 3c405fc commit 0b93108

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/webserver/http.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -443,7 +443,7 @@ async fn serve_fallback(
443443
) -> actix_web::Result<HttpResponse> {
444444
let catch_all = "404.sql";
445445

446-
let req_path = req_path(&service_request);
446+
let req_path = req_path(service_request);
447447
let mut fallback_path_candidate = req_path.clone().into_owned();
448448
log::debug!("Trying to find a {catch_all:?} handler for {fallback_path_candidate:?}");
449449

@@ -459,7 +459,7 @@ async fn serve_fallback(
459459
{
460460
// Remove the trailing substring behind the current `/`, and append `404.sql`.
461461
fallback_path_candidate.truncate(idx);
462-
fallback_path_candidate.push_str(&catch_all);
462+
fallback_path_candidate.push_str(catch_all);
463463

464464
// Check if `maybe_fallback_path` actually exists, if not, skip to the next round (which
465465
// will check `maybe_fallback_path`s parent directory for fallback handler).

0 commit comments

Comments
 (0)