Partial AppState rewrite
This commit is contained in:
1 parent
29a90d48d9
commit
0c4aec3dc0
13 files changed
+75
-49
No files matched your search
+2
-2
@@ -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 }
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user