Browse Source

Remove debug prints

master
Alex Mikhalev 4 years ago
parent
commit
c7450f1cc5
  1. 5
      src/schedule.rs

5
src/schedule.rs

@ -136,10 +136,6 @@ impl Schedule {
_ => reference, _ => reference,
} }
.clone(); .clone();
println!(
"resolved to: {:?}, from: {:?}, reference: {:?}",
to, &from, reference
);
let mut next_run: Option<DateTime<Tz>> = None; let mut next_run: Option<DateTime<Tz>> = None;
for weekday in &self.weekdays { for weekday in &self.weekdays {
for time in &self.times { for time in &self.times {
@ -152,7 +148,6 @@ impl Schedule {
date date
} }
}); });
println!("trying date: {:?}", candidate);
let candidate = match (candidate, &to) { let candidate = match (candidate, &to) {
(Some(date), Some(to)) if &date > to => None, (Some(date), Some(to)) if &date > to => None,
(date, _) => date, (date, _) => date,

Loading…
Cancel
Save