Migrate to hashbrown structures
This commit is contained in:
@@ -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()));
|
||||
|
||||
Reference in New Issue
Block a user