Skip to content

Commit 53ad6c6

Browse files
committed
fmt
1 parent 8239d8d commit 53ad6c6

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/webserver/http.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -401,12 +401,10 @@ async fn main_handler(mut service_request: ServiceRequest) -> actix_web::Result<
401401
}
402402
}
403403

404-
405404
/// Extracts the path from a request and percent-decodes it
406405
fn req_path(req: &ServiceRequest) -> Cow<'_, str> {
407406
let encoded_path = req.path();
408-
percent_encoding::percent_decode_str(encoded_path)
409-
.decode_utf8_lossy()
407+
percent_encoding::percent_decode_str(encoded_path).decode_utf8_lossy()
410408
}
411409

412410
pub fn create_app(

0 commit comments

Comments
 (0)