Partial AppState rewrite

This commit is contained in:
micialware committed 2026-08-31 11:46:35 +03:00
1 parent 29a90d48d9
commit 0c4aec3dc0
13 files changed
+75 -49

No files matched your search

+2 -2
View File
@@ -15,7 +15,7 @@ use std::sync::Arc;
#[derive(Clone)]
pub struct WordState {
state: Arc<Mutex<AppState>>,
state: AppState,
index: usize,
word: WordData,
}
@@ -136,7 +136,7 @@ impl NavigatedPage<WordMessage> for WordState {
}
impl WordState {
pub(crate) fn new(word: WordData, index: usize, state: Arc<Mutex<AppState>>) -> WordState {
pub(crate) fn new(word: WordData, index: usize, state: AppState) -> WordState {
WordState { state, index, word }
}
}