Change to use json for config
cleanup unused codes
This commit is contained in:
@@ -2,9 +2,8 @@ mod main_view;
|
||||
|
||||
use crossterm::event::{Event, KeyEvent};
|
||||
pub use main_view::MainView;
|
||||
use std::any::Any;
|
||||
|
||||
pub trait View: Any + 'static {
|
||||
pub trait View {
|
||||
fn handle_input(&mut self, event: &Event) -> color_eyre::Result<()>;
|
||||
fn handle_key_input(&mut self, key: &KeyEvent) -> color_eyre::Result<()>;
|
||||
fn is_running(&self) -> bool;
|
||||
|
||||
Reference in New Issue
Block a user