aboutsummaryrefslogtreecommitdiff
path: root/src/modules/index.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/modules/index.rs
parentfeat(directory): Sort routes by hits (diff)
downloadlocus-cb6df8c2749d8d3b88342398f3e5c13457206a2f.tar.xz
locus-cb6df8c2749d8d3b88342398f3e5c13457206a2f.zip
fix: Various optimisations
Diffstat (limited to 'src/modules/index.rs')
-rw-r--r--src/modules/index.rs4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/modules/index.rs b/src/modules/index.rs
index cd45150..0f7749a 100644
--- a/src/modules/index.rs
+++ b/src/modules/index.rs
@@ -41,10 +41,8 @@ Don't know where to start? Check out The Directory or test your luck!
posts
.iter()
- .map(|post| format!("=> {} {}", post.link(), post.title()))
- .collect::<Vec<String>>()
- .into_iter()
.take(3)
+ .map(|post| format!("=> {} {}", post.link(), post.title()))
.collect::<Vec<String>>()
.join("\n")
},