From 9c3c0901bb4427abf82cc37b39894c3ad568ab5a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Erik=20Nordstr=C3=B8m?= Date: Sun, 25 Aug 2024 20:48:57 +0200 Subject: [PATCH] clippy --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index 62ce30b..88a1f73 100644 --- a/src/main.rs +++ b/src/main.rs @@ -526,7 +526,7 @@ async fn request_handler_project( match (method, uri_path) { (&Method::GET, _) => { - if uri_path == "" { + if uri_path.is_empty() { handle_dir_request(project_dir, response_builder).await } else { let uri_path = uri_path.trim_start_matches('/');