Change text type in word to Box<str>
This commit is contained in:
1 parent
4a71f31e6f
commit
bffc81cda9
7 files changed
+32
-26
No files matched your search
@@ -188,11 +188,11 @@ impl DictionaryQuizState {
|
||||
let repo = self.state.dictionary.read();
|
||||
let next = repo.get_static(next).unwrap();
|
||||
if self.reverse {
|
||||
self.view = next.value;
|
||||
self.correct = next.key;
|
||||
self.view = next.value.to_string();
|
||||
self.correct = next.key.to_string();
|
||||
} else {
|
||||
self.view = next.key;
|
||||
self.correct = next.value;
|
||||
self.view = next.key.to_string();
|
||||
self.correct = next.value.to_string();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user