about summary refs log tree commit diff stats
path: root/crates/rocie-client/src/models/cooklang_recipe.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/rocie-client/src/models/cooklang_recipe.rs')
-rw-r--r--crates/rocie-client/src/models/cooklang_recipe.rs9
1 files changed, 7 insertions, 2 deletions
diff --git a/crates/rocie-client/src/models/cooklang_recipe.rs b/crates/rocie-client/src/models/cooklang_recipe.rs
index f517566..5127ff1 100644
--- a/crates/rocie-client/src/models/cooklang_recipe.rs
+++ b/crates/rocie-client/src/models/cooklang_recipe.rs
@@ -43,7 +43,13 @@ pub struct CooklangRecipe {
 
 impl CooklangRecipe {
     /// A complete recipe  The recipes do not have a name. You give it externally or maybe use some metadata key.  The recipe returned from parsing is a [`ScalableRecipe`].  The difference between [`ScalableRecipe`] and [`ScaledRecipe`] is in the values of the quantities of ingredients, cookware and timers. The parser returns [`ScalableValue`]s and after scaling, these are converted to regular [`Value`]s.
-    pub fn new(cookware: Vec<models::Cookware>, ingredients: Vec<models::Ingredient>, metadata: models::Metadata, sections: Vec<models::Section>, timers: Vec<models::Timer>) -> CooklangRecipe {
+    pub fn new(
+        cookware: Vec<models::Cookware>,
+        ingredients: Vec<models::Ingredient>,
+        metadata: models::Metadata,
+        sections: Vec<models::Section>,
+        timers: Vec<models::Timer>,
+    ) -> CooklangRecipe {
         CooklangRecipe {
             cookware,
             ingredients,
@@ -53,4 +59,3 @@ impl CooklangRecipe {
         }
     }
 }
-