automatic cargo CI changes

This commit is contained in:
cscherrNT 2024-07-17 15:48:15 +00:00 committed by github-actions[bot]
parent 74e39a08dc
commit 290704de46
3 changed files with 4 additions and 4 deletions

View File

@ -11,7 +11,7 @@ use ratatui::backend::CrosstermBackend;
use ratatui::crossterm::event::{self, poll, Event, KeyCode, KeyModifiers};
use ratatui::layout::{Alignment, Constraint, Direction, Layout, Rect};
use ratatui::style::{Style, Stylize};
use ratatui::widgets::{Block, LineGauge, Padding, Paragraph};
use ratatui::widgets::{Block, Padding, Paragraph};
use ratatui::Terminal;
use std::collections::HashMap;
use std::io::{Cursor, Stdout, Write};
@ -111,7 +111,7 @@ impl Clock {
}
TimeBarLength::Custom(_) => {
if since_last_reset.num_seconds() >= 1
&& i64::from(since_last_reset.num_seconds()) >= len.as_secs()
&& since_last_reset.num_seconds() >= len.as_secs()
{
self.last_reset = Some(Local::now());
}

View File

@ -1,6 +1,6 @@
use std::fmt::Display;
use chrono::{Duration, TimeDelta};
use chrono::Duration;
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
pub enum TimeBarLength {

View File

@ -150,7 +150,7 @@ pub fn timebarw_label<'a>(
.unwrap(),
),
};
Paragraph::new(format!("{} / {}", time_now, len))
Paragraph::new(format!("{time_now} / {len}"))
.alignment(Alignment::Center)
.block(
Block::default().padding(Padding::right(if inner_rect.width > 80 {