maid: formatting

This commit is contained in:
Jeremy Wall 2024-09-23 20:09:46 -04:00
parent 263abda17b
commit 6a5046d3c0
2 changed files with 6 additions and 6 deletions

View File

@ -111,7 +111,7 @@ impl Recipe {
title: title.into(), title: title.into(),
desc: desc.map(|s| s.into()), desc: desc.map(|s| s.into()),
steps: Vec::new(), steps: Vec::new(),
serving_count: Default::default(), serving_count: Default::default(),
} }
} }

View File

@ -41,10 +41,10 @@ pub struct AppState {
pub recipe_categories: BTreeMap<String, String>, pub recipe_categories: BTreeMap<String, String>,
pub extras: Vec<(String, String)>, pub extras: Vec<(String, String)>,
// FIXME(jwall): This should really be storable I think? // FIXME(jwall): This should really be storable I think?
#[serde(skip_deserializing,skip_serializing)] #[serde(skip_deserializing, skip_serializing)]
pub staples: Option<BTreeSet<Ingredient>>, pub staples: Option<BTreeSet<Ingredient>>,
// FIXME(jwall): This should really be storable I think? // 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 recipes: BTreeMap<String, Recipe>,
pub category_map: BTreeMap<String, String>, pub category_map: BTreeMap<String, String>,
pub filtered_ingredients: BTreeSet<IngredientKey>, pub filtered_ingredients: BTreeSet<IngredientKey>,
@ -525,9 +525,9 @@ impl MessageMapper<Message, AppState> for StateMachine {
spawn_local_scoped(cx, { spawn_local_scoped(cx, {
let local_store = self.local_store.clone(); let local_store = self.local_store.clone();
async move { async move {
local_store.store_app_state(&original_copy).await; local_store.store_app_state(&original_copy).await;
original.set(original_copy); original.set(original_copy);
} }
}); });
} }
} }