mirror of
https://github.com/zaphar/kitchen.git
synced 2025-07-22 19:40:14 -04:00
maid: formatting
This commit is contained in:
parent
263abda17b
commit
6a5046d3c0
@ -111,7 +111,7 @@ impl Recipe {
|
||||
title: title.into(),
|
||||
desc: desc.map(|s| s.into()),
|
||||
steps: Vec::new(),
|
||||
serving_count: Default::default(),
|
||||
serving_count: Default::default(),
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -41,10 +41,10 @@ pub struct AppState {
|
||||
pub recipe_categories: BTreeMap<String, String>,
|
||||
pub extras: Vec<(String, String)>,
|
||||
// FIXME(jwall): This should really be storable I think?
|
||||
#[serde(skip_deserializing,skip_serializing)]
|
||||
#[serde(skip_deserializing, skip_serializing)]
|
||||
pub staples: Option<BTreeSet<Ingredient>>,
|
||||
// FIXME(jwall): This should really be storable I think?
|
||||
#[serde(skip_deserializing,skip_serializing)]
|
||||
#[serde(skip_deserializing, skip_serializing)]
|
||||
pub recipes: BTreeMap<String, Recipe>,
|
||||
pub category_map: BTreeMap<String, String>,
|
||||
pub filtered_ingredients: BTreeSet<IngredientKey>,
|
||||
@ -525,9 +525,9 @@ impl MessageMapper<Message, AppState> for StateMachine {
|
||||
spawn_local_scoped(cx, {
|
||||
let local_store = self.local_store.clone();
|
||||
async move {
|
||||
local_store.store_app_state(&original_copy).await;
|
||||
original.set(original_copy);
|
||||
}
|
||||
local_store.store_app_state(&original_copy).await;
|
||||
original.set(original_copy);
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user