reformat code and write benchmark

This commit is contained in:
2026-05-12 16:57:05 +03:00
parent ee817a8e8c
commit 6d656c35e1
9 changed files with 367 additions and 62 deletions
+2 -1
View File
@@ -41,7 +41,8 @@ impl WordState {
WordMessage::Save => {
let mut state = self.state.lock().unwrap();
state.dictionary[self.index] = self.word.clone();
update_word(&mut self.word, &state.connection)
update_word(&mut self.word, &state.connection);
return Task::done(RootMessage::Word(WordMessage::Back))
}
WordMessage::Delete => {
let mut state = self.state.lock().unwrap();