aboutsummaryrefslogtreecommitdiff
path: root/src/response.rs
diff options
context:
space:
mode:
authorFuwn <[email protected]>2026-01-12 05:56:09 -0800
committerFuwn <[email protected]>2026-01-12 05:56:09 -0800
commitcb6df8c2749d8d3b88342398f3e5c13457206a2f (patch)
treea56230a03f370f6b263db469d5e74e5786e3a7cb /src/response.rs
parentfeat(directory): Sort routes by hits (diff)
downloadlocus-cb6df8c2749d8d3b88342398f3e5c13457206a2f.tar.xz
locus-cb6df8c2749d8d3b88342398f3e5c13457206a2f.zip
fix: Various optimisations
Diffstat (limited to 'src/response.rs')
-rw-r--r--src/response.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/response.rs b/src/response.rs
index b07a9ad..9c1cc69 100644
--- a/src/response.rs
+++ b/src/response.rs
@@ -27,7 +27,7 @@ pub fn success(
quote: {
use rand::prelude::SliceRandom;
- &QUOTES.choose(&mut rand::thread_rng()).unwrap().to_string()
+ QUOTES.choose(&mut rand::thread_rng()).unwrap()
},
commit: &format!("/tree/{}", env!("VERGEN_GIT_SHA")),
mini_commit: env!("VERGEN_GIT_SHA").get(0..5).unwrap_or("UNKNOWN"),