refactor: use map_or_else

This commit is contained in:
Jack Wills
2022-10-02 00:31:01 +00:00
parent a7b8df6b21
commit f5fc446295
5 changed files with 38 additions and 33 deletions
+1 -1
View File
@@ -137,7 +137,7 @@ impl InputHandler {
}
/// Handle any keyboard button events
#[allow(clippy::too_many_lines)]
#[allow(clippy::too_many_lines)]
async fn button_press(&mut self, key_code: KeyCode) {
let show_error = self.app_data.lock().show_error;
let show_info = self.gui_state.lock().show_help;