Code review: prefer unreachable to todo for checkins

This commit is contained in:
Michael Kirk 2021-03-19 11:05:03 -07:00 committed by Dustin Carlino
parent 3d5876a4fd
commit 9a2276c66d
2 changed files with 2 additions and 2 deletions

View File

@ -139,7 +139,7 @@ impl State<App> for TripTable {
} else if self.table_tabs.handle_action(ctx, &x, &mut self.panel) {
// if true, tabs handled the action
} else {
todo!("unhandled action: {}", x)
unreachable!("unhandled action: {}", x)
}
}
Outcome::Changed => {

View File

@ -168,7 +168,7 @@ impl State<App> for JumpToTime {
if self.tabs.handle_action(ctx, action, &mut self.panel) {
// if true, tabs has handled the action
} else {
todo!("handle action: {}", action)
unreachable!("unhandled action: {}", action)
}
}
},