diff --git a/cookbook/src/recipe.rs b/cookbook/src/recipe.rs index fb0cec9..c71c5e9 100644 --- a/cookbook/src/recipe.rs +++ b/cookbook/src/recipe.rs @@ -1,5 +1,6 @@ /// Tag associated with ingredients +#[allow(dead_code)] pub enum FoodTag { Viande, Poisson, @@ -7,6 +8,7 @@ pub enum FoodTag { } /// Categories for recipe, to organize them for navigation and planning +#[allow(dead_code)] pub enum RecipeCategory { PetitDejeuner, Entree, @@ -23,6 +25,7 @@ struct NutritionnalValues; /// An individual ingredient #[derive(Default)] +#[allow(dead_code)] pub struct Ingredient { /// All known alias of a same ingredient alias: Vec, @@ -33,7 +36,6 @@ pub struct Ingredient { } impl Ingredient { - /// Builds a brand new ingredient with given name as first alias pub(super) fn new(name: String) -> Ingredient { Ingredient { diff --git a/cookbook/src/storage.rs b/cookbook/src/storage.rs index fe25832..2b6bbb0 100644 --- a/cookbook/src/storage.rs +++ b/cookbook/src/storage.rs @@ -1,20 +1,4 @@ //! Storage backend for persistent data //! -use std::collections::HashMap; - -/// An entry in the storage -struct Entry(T); - -/// A storage container -pub struct Storage { - content: HashMap>, -} - -impl Storage { - pub(super) fn insert(&mut self, item: T) -> Result<(), ()> { - - Err(()) - } -} - - +//! Data is stored in a sqlite file. +//! We'll try to use Diesel-rs, but not ready yet to grasp it all.