diff --git a/vendor/morphic_lib/src/api.rs b/vendor/morphic_lib/src/api.rs index 326147f82a..604b02f896 100644 --- a/vendor/morphic_lib/src/api.rs +++ b/vendor/morphic_lib/src/api.rs @@ -262,6 +262,12 @@ pub struct TypeDefBuilder { inner: TypeBuilder, } +impl Default for TypeDefBuilder { + fn default() -> Self { + Self::new() + } +} + impl TypeDefBuilder { pub fn new() -> Self { Self { @@ -936,6 +942,12 @@ pub struct FuncDefBuilder { argument: ValueId, } +impl Default for FuncDefBuilder { + fn default() -> Self { + Self::new() + } +} + impl FuncDefBuilder { pub fn new() -> Self { let mut expr_builder = ExprBuilder::new(); @@ -979,6 +991,12 @@ pub struct ConstDefBuilder { expr_builder: ExprBuilder, } +impl Default for ConstDefBuilder { + fn default() -> Self { + Self::new() + } +} + impl ConstDefBuilder { pub fn new() -> Self { Self {