Skip to content

Commit

Permalink
Add panic on impossible branch
Browse files Browse the repository at this point in the history
  • Loading branch information
Mroik committed May 10, 2024
1 parent b8e87b7 commit 0bbf654
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ impl App {
}
}
}
_ => (),
_ => unreachable!(),
};
self.handle_expression_box_event(code, handler);
}
Expand Down Expand Up @@ -234,7 +234,7 @@ impl App {
}
}
}
_ => (),
_ => unreachable!(),
};
self.handle_expression_box_event(code, handler);
}
Expand Down Expand Up @@ -275,7 +275,7 @@ impl App {
app_context.reset_expression_box();
}
},
_ => (),
_ => unreachable!(),
};
self.handle_expression_box_event(code, handler);
}
Expand Down Expand Up @@ -377,7 +377,7 @@ impl App {
}
}
}
_ => (),
_ => unreachable!(),
};
self.handle_expression_box_event(code, handler);
}
Expand Down Expand Up @@ -537,7 +537,7 @@ impl App {
self.state = State::ImpliesState(ImpliesState::EliminateGetAssumption)
}
KeyCode::Char('f') => self.state = State::IffState(IffState::EliminateGetAssumption),
_ => (),
_ => unreachable!(),
}
}

Expand Down

0 comments on commit 0bbf654

Please sign in to comment.