From 7e92d5c7ec6358964f2a3a1597ce731020818cc2 Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Thu, 9 Dec 2021 16:43:06 -0500 Subject: simplify --- src/state.rs | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) (limited to 'src/state.rs') diff --git a/src/state.rs b/src/state.rs index 205edcf..38c4a3c 100644 --- a/src/state.rs +++ b/src/state.rs @@ -12,15 +12,11 @@ pub struct State { impl State { pub fn new(offset: time::UtcOffset) -> Self { - let readline = crate::readline::Readline::new(); - let history = crate::history::History::new(); - let focus = Focus::Readline; - let scene = Scene::Readline; Self { - readline, - history, - focus, - scene, + readline: crate::readline::Readline::new(), + history: crate::history::History::new(), + focus: Focus::Readline, + scene: Scene::Readline, escape: false, hide_readline: false, offset, -- cgit v1.2.3-54-g00ecf