kyu08/fzf-make

[Refactor] Making impossible states impossible

Closed this issue · 0 comments

Define AppState according to the concept of 'Making Impossible States Impossible'.
Ref: https://www.youtube.com/watch?v=IcgmSRJHu_8

pub struct Model<'a> {
pub app_state: AppState,
pub current_pane: CurrentPane,
pub makefile: Makefile,
pub search_text_area: TextArea_<'a>,
pub targets_list_state: ListState,
pub histories: Option<Histories>, // When home dir could not be found, this is None.
pub histories_list_state: ListState,
}