mirror of
https://github.com/fawney19/Aether.git
synced 2026-09-02 17:30:23 +08:00
Fix admin user count clippy lint
This commit is contained in:
@@ -386,9 +386,8 @@ fn filter_memory_export_rows(
|
|||||||
.read()
|
.read()
|
||||||
.expect("user repository lock")
|
.expect("user repository lock")
|
||||||
.keys()
|
.keys()
|
||||||
.filter_map(|(candidate_group_id, user_id)| {
|
.filter(|(candidate_group_id, _)| candidate_group_id == group_id)
|
||||||
(candidate_group_id == group_id).then(|| user_id.clone())
|
.map(|(_, user_id)| user_id.clone())
|
||||||
})
|
|
||||||
.collect::<std::collections::BTreeSet<_>>();
|
.collect::<std::collections::BTreeSet<_>>();
|
||||||
rows.retain(|row| member_ids.contains(&row.id));
|
rows.retain(|row| member_ids.contains(&row.id));
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user