aboutsummaryrefslogtreecommitdiff
path: root/src/routes.rs
diff options
context:
space:
mode:
authorJoris2025-02-06 19:10:54 +0100
committerJoris2025-02-06 19:10:54 +0100
commit2956aa5f5324e4183dbc87f81fbc71fd0f43dbf9 (patch)
tree41673ba3f942367a5548c1f05ef20a5e17bbba79 /src/routes.rs
parentc70e84a1b2aa307363b7b760f9f15b7438b0afba (diff)
Improve String handling
See https://blog.sulami.xyz/posts/string-vs-str/
Diffstat (limited to 'src/routes.rs')
-rw-r--r--src/routes.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/routes.rs b/src/routes.rs
index aca4284..7107a60 100644
--- a/src/routes.rs
+++ b/src/routes.rs
@@ -28,7 +28,7 @@ pub async fn routes(
let response = match (method, path) {
(&Method::HEAD, ["status"]) => controller::utils::ok(),
- (&Method::GET, ["status"]) => controller::utils::text("ok".to_string()),
+ (&Method::GET, ["status"]) => controller::utils::text("ok"),
(&Method::GET, ["login"]) => {
controller::login::page(&assets, &templates, None).await
}