Improve jq microcap execution semantics

This commit is contained in:
boris
2026-04-18 18:02:50 +08:00
parent 9f4165e689
commit 0e2c25e4c4
26 changed files with 5058 additions and 362 deletions

View File

@@ -45,7 +45,8 @@ impl TradingCalendar {
pub fn previous_day(&self, date: NaiveDate) -> Option<NaiveDate> {
let idx = self.index_of(date)?;
idx.checked_sub(1).and_then(|prev| self.days.get(prev).copied())
idx.checked_sub(1)
.and_then(|prev| self.days.get(prev).copied())
}
pub fn trailing_days(&self, end: NaiveDate, lookback: usize) -> Vec<NaiveDate> {