Rewrite for dictionary indexer
This commit is contained in:
+1
-1
@@ -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>>();
|
||||
|
||||
Reference in New Issue
Block a user