chore: run cargo fmt

This commit is contained in:
Stevan Freeborn
2026-07-28 17:36:29 -05:00
parent 1344625fc9
commit fe5e2d85f0
3 changed files with 9 additions and 9 deletions
+7 -7
View File
@@ -103,14 +103,14 @@ mod tests {
use super::*; use super::*;
fn get_test_config(work_mins: u32, break_mins: u32) -> CliConfig { fn get_test_config(work_mins: u32, break_mins: u32) -> CliConfig {
CliConfig { CliConfig {
work_mins, work_mins,
break_mins, break_mins,
enable_notifications: false, enable_notifications: false,
enable_sound: false, enable_sound: false,
enable_visualizer: false, enable_visualizer: false,
}
} }
}
#[test] #[test]
fn termato_new_when_called_it_should_return_expected_starting_state() { fn termato_new_when_called_it_should_return_expected_starting_state() {
+1 -1
View File
@@ -1,5 +1,5 @@
use crossterm::event::{self, Event, KeyCode, KeyModifiers};
use crate::msg::Message; use crate::msg::Message;
use crossterm::event::{self, Event, KeyCode, KeyModifiers};
pub fn handle_event(event: Event) -> Option<Message> { pub fn handle_event(event: Event) -> Option<Message> {
if let Event::Key(key) = event if let Event::Key(key) = event
+1 -1
View File
@@ -6,11 +6,11 @@ use ratatui::{
widgets::{Block, Borders, Clear, Paragraph}, widgets::{Block, Borders, Clear, Paragraph},
}; };
use crate::{audio::AudioVisualizer, constants::VIZ_NUM_BARS};
use crate::{ use crate::{
app::{Termato, TimerMode}, app::{Termato, TimerMode},
constants::SECONDS_PER_MIN, constants::SECONDS_PER_MIN,
}; };
use crate::{audio::AudioVisualizer, constants::VIZ_NUM_BARS};
// use unicode blocks for rendering // use unicode blocks for rendering
// Empty -> " " // Empty -> " "