diff options
author | Manos Pitsidianakis <el13635@mail.ntua.gr> | 2019-03-14 12:19:25 +0200 |
---|---|---|
committer | Manos Pitsidianakis <el13635@mail.ntua.gr> | 2019-06-10 19:40:39 +0300 |
commit | bf038428c2cc3da8eb348524be06ac612612d61c (patch) | |
tree | fe10fb1a8e959a862270d6cb4147e7f5525f0800 /src | |
parent | e7c95ba2297a9bd155760ee9adc14406401c6184 (diff) |
Run rustfmt
Diffstat (limited to 'src')
-rw-r--r-- | src/bin.rs | 16 |
1 files changed, 11 insertions, 5 deletions
@@ -48,9 +48,9 @@ fn main() { //let _stdout = stdout(); //let mut _stdout = _stdout.lock(); /* - let _stderr = stderr(); - let mut _stderr = _stderr.lock(); - */ + let _stderr = stderr(); + let mut _stderr = _stderr.lock(); + */ /* Catch SIGWINCH to handle terminal resizing */ let signal = chan_signal::notify(&[Signal::WINCH]); @@ -66,7 +66,11 @@ fn main() { let menu = Entity::from(Box::new(AccountMenu::new(&state.context.accounts))); let listing = listing::Listing::from(IndexStyle::Compact); let b = Entity::from(Box::new(listing)); - let tabs = Box::new(Tabbed::new(vec![Box::new(VSplit::new(menu, b, 90, true)), Box::new(AccountsPanel::new(&state.context)), Box::new(ContactList::default())])); + let tabs = Box::new(Tabbed::new(vec![ + Box::new(VSplit::new(menu, b, 90, true)), + Box::new(AccountsPanel::new(&state.context)), + Box::new(ContactList::default()), + ])); let window = Entity::from(tabs); let status_bar = Entity::from(Box::new(StatusBar::new(window))); @@ -75,7 +79,9 @@ fn main() { let xdg_notifications = Entity::from(Box::new(ui::components::notifications::XDGNotifications {})); state.register_entity(xdg_notifications); - state.register_entity(Entity::from(Box::new(ui::components::notifications::NotificationFilter {}))); + state.register_entity(Entity::from(Box::new( + ui::components::notifications::NotificationFilter {}, + ))); /* Keep track of the input mode. See ui::UIMode for details */ 'main: loop { |