chore: some more clippy findings
cargo devel CI / cargo CI (push) Successful in 1m47s Details

This commit is contained in:
Christoph J. Scherr 2024-09-03 19:16:25 +02:00
parent 2f306304b3
commit 89a636589d
2 changed files with 3 additions and 5 deletions

View File

@ -70,8 +70,6 @@ pub struct Clock {
pub(crate) last_reset: Option<DateTime<Local>>,
#[clap(skip)]
pub(crate) did_notify: bool,
#[clap(skip)]
pub(crate) started_at: DateTime<Local>,
}
impl Clock {

View File

@ -27,12 +27,12 @@ pub struct Data {
impl Data {
pub fn new(timebar_type: TimeBarLength) -> Self {
let mut this = Self {
now: [Default::default(); 2],
now: [DateTime::default(); 2],
fdate: [String::new(), String::new()],
ftime: [String::new(), String::new()],
timebar_ratio: [Default::default(); 2],
timebar_ratio: [Option::default(); 2],
started_at: Local::now(),
idx: Default::default(),
idx: usize::default(),
timebar_type,
};