Migrate to hashbrown structures

This commit is contained in:
2026-08-16 23:50:14 +03:00
parent dcf7352553
commit 3fcbd235cf
5 changed files with 7 additions and 15 deletions
-10
View File
@@ -97,9 +97,7 @@ impl NavigatedPage<RepetitionsMessage> for RepetitionsState {
.iter()
.map(|c| self.word_id_index_map[&c.word_id])
.collect();
println!("Already exists {:?}", added);
let total = set.get_word_list(&state);
println!("Available{:?}", total);
self.current_sets_cards_cache.insert(index, (added, total));
@@ -164,14 +162,6 @@ impl NavigatedPage<RepetitionsMessage> for RepetitionsState {
.cloned()
.collect();
for x in &cache.0 {
println!("Already exists {:?}", state.dictionary.get(*x).unwrap());
}
for w in &adding {
println!("{:?}", state.dictionary.get(*w).unwrap());
}
let mut new_current = cache.0.clone();
new_current.append(&mut adding.clone());
total_cache.insert(index, (new_current, cache.1.clone()));