generated from PlexSheep/rs-base
Compare commits
No commits in common. "89a636589d3eceb2dcf7caddad84d773f9a494c7" and "23a417a9f9bab400e1d724483af786ffaa453eb3" have entirely different histories.
89a636589d
...
23a417a9f9
2 changed files with 8 additions and 6 deletions
|
@ -6,7 +6,7 @@
|
|||
#![allow(clippy::cast_possible_wrap)]
|
||||
#![allow(clippy::cast_sign_loss)] // it should only be positive anyway
|
||||
|
||||
use chrono::{DateTime, Local, SubsecRound, Timelike};
|
||||
use chrono::{Date, DateTime, Local, SubsecRound, Timelike};
|
||||
use clap::Parser;
|
||||
use libpt::cli::args::HELP_TEMPLATE;
|
||||
use libpt::cli::clap::ArgGroup;
|
||||
|
@ -70,6 +70,8 @@ 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 {
|
||||
|
|
|
@ -27,12 +27,12 @@ pub struct Data {
|
|||
impl Data {
|
||||
pub fn new(timebar_type: TimeBarLength) -> Self {
|
||||
let mut this = Self {
|
||||
now: [DateTime::default(); 2],
|
||||
fdate: [String::new(), String::new()],
|
||||
ftime: [String::new(), String::new()],
|
||||
timebar_ratio: [Option::default(); 2],
|
||||
now: [Default::default(); 2],
|
||||
fdate: ["".to_string(), "".to_string()],
|
||||
ftime: ["".to_string(), "".to_string()],
|
||||
timebar_ratio: [Default::default(); 2],
|
||||
started_at: Local::now(),
|
||||
idx: usize::default(),
|
||||
idx: Default::default(),
|
||||
|
||||
timebar_type,
|
||||
};
|
||||
|
|
Reference in a new issue