diff --git a/src/protocol/mod.rs b/src/protocol/mod.rs index 69d540318eac690a91df6e15f6ff48f3776251d5..5c353dc8115255e9773d0103f60bca8fa76adc94 100644 --- a/src/protocol/mod.rs +++ b/src/protocol/mod.rs @@ -15,7 +15,7 @@ use std::hint::unreachable_unchecked; pub struct ProtocolDescriptionImpl { heap: Heap, source: InputSource, - root: RootId + root: RootId, } impl std::fmt::Debug for ProtocolDescriptionImpl { @@ -86,15 +86,13 @@ impl ProtocolDescription for ProtocolDescriptionImpl { for (&x, y) in ports.iter().zip(self.component_polarities(identifier).unwrap()) { match y { Polarity::Getter => args.push(Value::Input(InputValue(x))), - Polarity::Putter => args.push(Value::Output(OutputValue(x))) + Polarity::Putter => args.push(Value::Output(OutputValue(x))), } } let h = &self.heap; let root = &h[self.root]; let def = root.get_definition_ident(h, identifier).unwrap(); - ComponentStateImpl { - prompt: Prompt::new(h, def, &args) - } + ComponentStateImpl { prompt: Prompt::new(h, def, &args) } } }