mirror of
https://github.com/a-b-street/abstreet.git
synced 2024-12-24 23:15:24 +03:00
Code review: prefer unreachable
to todo
for checkins
This commit is contained in:
parent
3d5876a4fd
commit
9a2276c66d
@ -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 => {
|
||||
|
@ -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)
|
||||
}
|
||||
}
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user