chore: run cargo fmt
This commit is contained in:
+7
-7
@@ -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
@@ -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
|
||||||
|
|||||||
@@ -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 -> " "
|
||||||
|
|||||||
Reference in New Issue
Block a user