web: fix clippy lints

Signed-off-by: Manos Pitsidianakis <manos@pitsidianak.is>
web-cookie-secret
Manos Pitsidianakis 2023-10-29 12:39:54 +02:00
parent 7491ebf6fb
commit 19e8b626ca
Signed by: Manos Pitsidianakis
GPG Key ID: 7729C7707F7E09D0
2 changed files with 2 additions and 2 deletions

View File

@ -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)| {

View File

@ -440,7 +440,7 @@ pub fn thread(
pub fn thread_roots(
envelopes: &Arc<std::sync::RwLock<HashMap<melib::EnvelopeHash, melib::Envelope>>>,
threads: &mut melib::Threads,
threads: &melib::Threads,
) -> Vec<(ThreadEntry, usize, u64)> {
let items = threads.roots();
let env_lock = envelopes.read().unwrap();