From 19e8b626caca641ea09b3847c2045ad515e005c9 Mon Sep 17 00:00:00 2001 From: Manos Pitsidianakis Date: Sun, 29 Oct 2023 12:39:54 +0200 Subject: [PATCH] web: fix clippy lints Signed-off-by: Manos Pitsidianakis --- web/src/lists.rs | 2 +- web/src/utils.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/web/src/lists.rs b/web/src/lists.rs index fa2047a..e9c2009 100644 --- a/web/src/lists.rs +++ b/web/src/lists.rs @@ -68,7 +68,7 @@ pub async fn list( let mut threads: melib::Threads = melib::Threads::new(posts.len()); drop(env_lock); threads.amend(&envelopes); - let roots = thread_roots(&envelopes, &mut threads); + let roots = thread_roots(&envelopes, &threads); let posts_ctx = roots .into_iter() .map(|(thread, length, _timestamp)| { diff --git a/web/src/utils.rs b/web/src/utils.rs index 03f25ac..8321ec1 100644 --- a/web/src/utils.rs +++ b/web/src/utils.rs @@ -440,7 +440,7 @@ pub fn thread( pub fn thread_roots( envelopes: &Arc>>, - threads: &mut melib::Threads, + threads: &melib::Threads, ) -> Vec<(ThreadEntry, usize, u64)> { let items = threads.roots(); let env_lock = envelopes.read().unwrap();