diff options
author | Joris | 2025-02-06 19:10:54 +0100 |
---|---|---|
committer | Joris | 2025-02-06 19:10:54 +0100 |
commit | 2956aa5f5324e4183dbc87f81fbc71fd0f43dbf9 (patch) | |
tree | 41673ba3f942367a5548c1f05ef20a5e17bbba79 /src/routes.rs | |
parent | c70e84a1b2aa307363b7b760f9f15b7438b0afba (diff) |
Improve String handling
See https://blog.sulami.xyz/posts/string-vs-str/
Diffstat (limited to 'src/routes.rs')
-rw-r--r-- | src/routes.rs | 2 |
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 } |