From 2956aa5f5324e4183dbc87f81fbc71fd0f43dbf9 Mon Sep 17 00:00:00 2001 From: Joris Date: Thu, 6 Feb 2025 19:10:54 +0100 Subject: Improve String handling See https://blog.sulami.xyz/posts/string-vs-str/ --- src/routes.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/routes.rs') 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 } -- cgit v1.2.3