We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 83fd194 + d18caa0 commit a243892Copy full SHA for a243892
src/main.rs
@@ -859,10 +859,14 @@ fn get_start_date(cfg: &Config) -> Date<Utc> {
859
fn get_end_date(cfg: &Config) -> Date<Utc> {
860
if let Some(Bound::Date(date)) = cfg.args.end {
861
date
862
- } else if let Some(date) = Toolchain::default_nightly() {
863
- date
864
} else {
865
- Utc::today()
+ match (Toolchain::default_nightly(), &cfg.args.start) {
+ // Neither --start or --end specified, default to the current
+ // nightly (if available).
866
+ (Some(date), None) => date,
867
+ // --start only, assume --end=today
868
+ _ => Utc::today(),
869
+ }
870
}
871
872
0 commit comments