@@ -23,7 +23,7 @@ pub struct Parser {
2323#[ derive( Tsify , Serialize , Deserialize ) ]
2424#[ tsify( into_wasm_abi, from_wasm_abi) ]
2525pub struct ScaledRecipeWithReport {
26- recipe : cooklang:: ScaledRecipe ,
26+ recipe : cooklang:: Recipe ,
2727 report : String ,
2828}
2929
@@ -85,11 +85,10 @@ impl Parser {
8585
8686 pub fn parse ( & self , input : & str ) -> ScaledRecipeWithReport {
8787 let ( recipe, _report) = self . parser . parse ( input) . into_tuple ( ) ;
88- let scaled = recipe
89- . expect ( "expected recipe" )
90- . scale ( 1. , self . parser . converter ( ) ) ;
88+ let mut recipe = recipe. expect ( "expected recipe" ) ;
89+ recipe. scale ( 1. , self . parser . converter ( ) ) ;
9190 let data = ScaledRecipeWithReport {
92- recipe : scaled ,
91+ recipe,
9392 report : "<no output>" . to_string ( ) ,
9493 } ;
9594 data
@@ -135,7 +134,7 @@ impl Parser {
135134 author : Option < NameAndUrl > ,
136135 source : Option < NameAndUrl > ,
137136 time : Option < RecipeTime > ,
138- servings : Option < Vec < u32 > > ,
137+ servings : Option < cooklang :: metadata :: Servings > ,
139138 locale : Option < ( & ' a str , Option < & ' a str > ) > ,
140139 }
141140 let val = StdMeta {
0 commit comments