generated from PlexSheep/rs-base
chore: clippy findings
cargo devel CI / cargo CI (push) Successful in 1m44s
Details
cargo devel CI / cargo CI (push) Successful in 1m44s
Details
This commit is contained in:
parent
23a417a9f9
commit
2f306304b3
|
@ -6,7 +6,7 @@
|
||||||
#![allow(clippy::cast_possible_wrap)]
|
#![allow(clippy::cast_possible_wrap)]
|
||||||
#![allow(clippy::cast_sign_loss)] // it should only be positive anyway
|
#![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 clap::Parser;
|
||||||
use libpt::cli::args::HELP_TEMPLATE;
|
use libpt::cli::args::HELP_TEMPLATE;
|
||||||
use libpt::cli::clap::ArgGroup;
|
use libpt::cli::clap::ArgGroup;
|
||||||
|
|
|
@ -28,8 +28,8 @@ impl Data {
|
||||||
pub fn new(timebar_type: TimeBarLength) -> Self {
|
pub fn new(timebar_type: TimeBarLength) -> Self {
|
||||||
let mut this = Self {
|
let mut this = Self {
|
||||||
now: [Default::default(); 2],
|
now: [Default::default(); 2],
|
||||||
fdate: ["".to_string(), "".to_string()],
|
fdate: [String::new(), String::new()],
|
||||||
ftime: ["".to_string(), "".to_string()],
|
ftime: [String::new(), String::new()],
|
||||||
timebar_ratio: [Default::default(); 2],
|
timebar_ratio: [Default::default(); 2],
|
||||||
started_at: Local::now(),
|
started_at: Local::now(),
|
||||||
idx: Default::default(),
|
idx: Default::default(),
|
||||||
|
|
Reference in New Issue