From 1f508ddfb69e4bdedbb7fa3ba7034f8938eacbd9 Mon Sep 17 00:00:00 2001 From: Brooks J Rady Date: Sun, 27 Dec 2020 00:17:15 +0000 Subject: Convince clippy to chill --- src/display/ui.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/display/ui.rs') diff --git a/src/display/ui.rs b/src/display/ui.rs index d37ab31..24de083 100644 --- a/src/display/ui.rs +++ b/src/display/ui.rs @@ -31,8 +31,10 @@ where let mut terminal = Terminal::new(terminal_backend).unwrap(); terminal.clear().unwrap(); terminal.hide_cursor().unwrap(); - let mut state: UIState = Default::default(); - state.cumulative_mode = opts.total_utilization; + let state = UIState { + cumulative_mode: opts.total_utilization, + ..Default::default() + }; Ui { terminal, state, -- cgit v1.2.3