diff --git a/src/common.rs b/src/common.rs index 282dc579f0bd101f6a90f0ebe5173a768be39584..64de8c8bb1838be6eff9cab9b8d8880326a6f4de 100644 --- a/src/common.rs +++ b/src/common.rs @@ -53,11 +53,7 @@ pub trait ProtocolDescription: Sized { fn parse(pdl: &[u8]) -> Result; fn component_polarities(&self, identifier: &[u8]) -> Result, MainComponentErr>; - fn new_main_component( - &self, - identifier: &[u8], - ports: &[Key], - ) -> Result; + fn new_main_component(&self, identifier: &[u8], ports: &[Key]) -> Self::S; } pub trait ComponentState: Sized + Clone {