Rewrite for dictionary indexer

This commit is contained in:
2026-08-19 18:00:03 +03:00
parent 746071125a
commit e7023752f1
4 changed files with 10 additions and 14 deletions
+1 -1
View File
@@ -360,7 +360,7 @@ impl DeckData {
let last_list: Vec<_> = settings
.get_word_list(&state_locked)
.iter()
.map(|w| state_locked.dictionary.get(*w).unwrap())
.map(|w| &state_locked.dictionary[*w])
.cloned()
.collect();
let word_ids = last_list.iter().map(|l| l.id).collect::<Vec<Id>>();