diff options
| author | Fuwn <[email protected]> | 2026-01-12 05:56:09 -0800 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2026-01-12 05:56:09 -0800 |
| commit | cb6df8c2749d8d3b88342398f3e5c13457206a2f (patch) | |
| tree | a56230a03f370f6b263db469d5e74e5786e3a7cb /src/modules/index.rs | |
| parent | feat(directory): Sort routes by hits (diff) | |
| download | locus-cb6df8c2749d8d3b88342398f3e5c13457206a2f.tar.xz locus-cb6df8c2749d8d3b88342398f3e5c13457206a2f.zip | |
fix: Various optimisations
Diffstat (limited to 'src/modules/index.rs')
| -rw-r--r-- | src/modules/index.rs | 4 |
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") }, |