1
0
mirror of https://gitlab.com/Anson-Projects/zine.git synced 2025-06-16 13:36:40 +00:00
This commit is contained in:
Anson Biggs 2024-04-26 03:17:20 +00:00
parent 7008f06d45
commit 2a38bfe93b

View File

@ -50,7 +50,7 @@ fn main() -> Result<(), Box<dyn Error>> {
entries.retain(|entry| entry.score.is_positive()); entries.retain(|entry| entry.score.is_positive());
// Cunt occurences of main urls // Count occurences of main urls
let url_counts = entries.iter().fold(HashMap::new(), |mut acc, post| { let url_counts = entries.iter().fold(HashMap::new(), |mut acc, post| {
*acc.entry(post.main_url.clone()).or_insert(0) += 1; *acc.entry(post.main_url.clone()).or_insert(0) += 1;
acc acc