summaryrefslogtreecommitdiffstats
path: root/src/state.rs
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2021-12-09 16:43:06 -0500
committerJesse Luehrs <doy@tozt.net>2021-12-09 16:43:06 -0500
commit7e92d5c7ec6358964f2a3a1597ce731020818cc2 (patch)
tree89026c62fc2dd904cfcdeff76935ee85c23ca850 /src/state.rs
parent0eaff13c4ca55a3f842c68f6ccc478b0c0c7a6df (diff)
downloadnbsh-7e92d5c7ec6358964f2a3a1597ce731020818cc2.tar.gz
nbsh-7e92d5c7ec6358964f2a3a1597ce731020818cc2.zip
simplify
Diffstat (limited to 'src/state.rs')
-rw-r--r--src/state.rs12
1 files changed, 4 insertions, 8 deletions
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,