refactor: clippy findings
cargo devel CI / cargo CI (push) Has been cancelled Details

This commit is contained in:
Christoph J. Scherr 2024-07-09 20:09:12 +02:00
parent 572db7f182
commit fdf2da6566
1 changed files with 2 additions and 6 deletions

View File

@ -5,16 +5,12 @@ use libpt::cli::{args::VerbosityLevel, args::HELP_TEMPLATE, clap};
use chrono::SubsecRound; use chrono::SubsecRound;
use ratatui::crossterm::event::{ use ratatui::crossterm::event::{
self, poll, DisableMouseCapture, EnableMouseCapture, Event, KeyCode, KeyModifiers, self, poll, Event, KeyCode, KeyModifiers,
}; };
use ratatui::layout::Alignment; use ratatui::layout::Alignment;
use ratatui::widgets::{Block, Padding}; use ratatui::widgets::{Block, Padding};
use ratatui::{ use ratatui::{
backend::CrosstermBackend, backend::CrosstermBackend,
crossterm::{
execute,
terminal::{disable_raw_mode, enable_raw_mode, EnterAlternateScreen, LeaveAlternateScreen},
},
layout::{Constraint, Direction, Layout, Rect}, layout::{Constraint, Direction, Layout, Rect},
style::{Style, Stylize}, style::{Style, Stylize},
widgets::Paragraph, widgets::Paragraph,
@ -26,7 +22,7 @@ use std::time::Duration;
/// Make your terminal into a big clock /// Make your terminal into a big clock
#[derive(Parser, Debug, Clone, PartialEq, Eq, Hash)] #[derive(Parser, Debug, Clone, PartialEq, Eq, Hash)]
#[command(help_template = HELP_TEMPLATE)] #[command(help_template = HELP_TEMPLATE)]
pub(crate) struct Clock { pub struct Clock {
#[command(flatten)] #[command(flatten)]
pub verbose: VerbosityLevel, pub verbose: VerbosityLevel,
} }