diff --git a/src/app.rs b/src/app.rs index 23d50a7..4a69b06 100644 --- a/src/app.rs +++ b/src/app.rs @@ -103,14 +103,14 @@ mod tests { use super::*; fn get_test_config(work_mins: u32, break_mins: u32) -> CliConfig { - CliConfig { - work_mins, - break_mins, - enable_notifications: false, - enable_sound: false, - enable_visualizer: false, - } + CliConfig { + work_mins, + break_mins, + enable_notifications: false, + enable_sound: false, + enable_visualizer: false, } + } #[test] fn termato_new_when_called_it_should_return_expected_starting_state() { diff --git a/src/events.rs b/src/events.rs index 57af44f..b015058 100644 --- a/src/events.rs +++ b/src/events.rs @@ -1,5 +1,5 @@ -use crossterm::event::{self, Event, KeyCode, KeyModifiers}; use crate::msg::Message; +use crossterm::event::{self, Event, KeyCode, KeyModifiers}; pub fn handle_event(event: Event) -> Option { if let Event::Key(key) = event diff --git a/src/ui.rs b/src/ui.rs index 7984fec..78fb386 100644 --- a/src/ui.rs +++ b/src/ui.rs @@ -6,11 +6,11 @@ use ratatui::{ widgets::{Block, Borders, Clear, Paragraph}, }; -use crate::{audio::AudioVisualizer, constants::VIZ_NUM_BARS}; use crate::{ app::{Termato, TimerMode}, constants::SECONDS_PER_MIN, }; +use crate::{audio::AudioVisualizer, constants::VIZ_NUM_BARS}; // use unicode blocks for rendering // Empty -> " "