From 81a2e2e2be1326859a7355e3ea6de4151bb9c021 2020-02-05 17:32:54 From: Christopher Esterhuyse Date: 2020-02-05 17:32:54 Subject: [PATCH] api --- 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 {