Skip to content
Snippets Groups Projects
Commit 366c24e5 authored by Udo Eisenbarth's avatar Udo Eisenbarth :speech_balloon:
Browse files

Fix further compile errors.

parent b9632f4d
No related branches found
No related tags found
1 merge request!5Resolve "Implement "inverted" feature for group nodes"
Pipeline #7356 passed with warnings
......@@ -45,16 +45,14 @@ impl Optical for Dummy {
} else {
Ok(HashMap::from([("rear".into(), None)]))
}
} else if let Some(data) = incoming_data.get("rear") {
Ok(HashMap::from([("front".into(), data.clone())]))
} else {
if let Some(data) = incoming_data.get("rear") {
Ok(HashMap::from([("front".into(), data.clone())]))
} else {
Ok(HashMap::from([("front".into(), None)]))
}
Ok(HashMap::from([("front".into(), None)]))
}
}
fn set_inverted(&mut self, inverted: bool) {
self.is_inverted=true;
self.is_inverted = inverted;
}
}
......
......@@ -26,7 +26,7 @@ impl OpticNode {
/// use opossum::optic_node::OpticNode;
/// use opossum::nodes::Dummy;
///
/// let node=OpticNode::new("My node", Dummy);
/// let node=OpticNode::new("My node", Dummy::default());
/// ```
pub fn new<T: OpticComponent + 'static>(name: &str, node_type: T) -> Self {
let ports = node_type.ports();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment