chore: clippy findings
cargo devel CI / cargo CI (push) Successful in 1m44s Details

This commit is contained in:
Christoph J. Scherr 2024-09-03 19:14:34 +02:00
parent 23a417a9f9
commit 2f306304b3
2 changed files with 3 additions and 3 deletions

View File

@ -6,7 +6,7 @@
#![allow(clippy::cast_possible_wrap)]
#![allow(clippy::cast_sign_loss)] // it should only be positive anyway
use chrono::{Date, DateTime, Local, SubsecRound, Timelike};
use chrono::{DateTime, Local, SubsecRound, Timelike};
use clap::Parser;
use libpt::cli::args::HELP_TEMPLATE;
use libpt::cli::clap::ArgGroup;

View File

@ -28,8 +28,8 @@ impl Data {
pub fn new(timebar_type: TimeBarLength) -> Self {
let mut this = Self {
now: [Default::default(); 2],
fdate: ["".to_string(), "".to_string()],
ftime: ["".to_string(), "".to_string()],
fdate: [String::new(), String::new()],
ftime: [String::new(), String::new()],
timebar_ratio: [Default::default(); 2],
started_at: Local::now(),
idx: Default::default(),