web: fix clippy lints
Signed-off-by: Manos Pitsidianakis <manos@pitsidianak.is>web-cookie-secret
parent
7491ebf6fb
commit
19e8b626ca
|
@ -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)| {
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue