Files
foxhunt/services/backtesting_service/src
jgrusewski 15c094c7ee safety: add clippy deny(unwrap_used, expect_used) to api_gateway, backtesting_service
Add #![deny(clippy::unwrap_used, clippy::expect_used)] to api_gateway and
backtesting_service crate roots. The ml and common crates already had these
deny attributes.

Production code fixes:
- api_gateway: replace expect with unwrap_or for cache stats and LRU eviction
- api_gateway: add #[allow] on NonZeroU32 constants and Prometheus metrics
- backtesting_service: replace expect/unwrap with ok_or_else/? for OHLCV
  bar bounds checks and chrono timestamp resampling
- backtesting_service: add #[allow] on Prometheus Lazy metric statics

Test code: cfg_attr(test, allow) at crate root for both crates.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-21 19:49:13 +01:00
..