Skip to content

Commit

Permalink
Fix crash
Browse files Browse the repository at this point in the history
  • Loading branch information
zakarumych committed Jan 22, 2024
1 parent fb49b37 commit 6f202c4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions examples/demo.rs
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,9 @@ impl SnarlViewer<DemoNode> for DemoViewer {
return;
}
(DemoNode::String(_), DemoNode::ShowImage(_)) => {}
(DemoNode::ExprNode(_), DemoNode::ExprNode(_)) if to.id.input == 0 => {
return;
}
(DemoNode::ExprNode(_), DemoNode::ExprNode(_)) => {}
(DemoNode::Number(_), DemoNode::ExprNode(_)) if to.id.input == 0 => {
return;
Expand Down

0 comments on commit 6f202c4

Please sign in to comment.