- Add #![deny(clippy::unwrap_used, clippy::expect_used)] to config/src/lib.rs
- Add #![deny(clippy::unwrap_used, clippy::expect_used)] to trading_agent_service/src/lib.rs
- Add #![deny(clippy::unwrap_used, clippy::expect_used)] to trading_agent_service/src/main.rs (binary crate)
config crate fixes:
- asset_classification.rs: Replace .parse().unwrap() with Decimal::new() for tick/position sizes
- asset_classification.rs: Replace NaiveTime::from_hms_opt().unwrap() with .unwrap_or_default()
- asset_classification.rs: Add #[allow] on test module
- symbol_config.rs: Add #[allow] on test module (function-level allows already present)
trading_agent_service fixes:
- monitoring.rs: Add #[allow(clippy::expect_used)] on each Lazy static metric registration
- monitoring.rs: Fix start_metrics_server() runtime unwrap/expect calls with safe alternatives
- monitoring.rs: Add #[allow] on test module
- main.rs: Fix health_handler() .unwrap() with .unwrap_or_else() fallback
- main.rs: Fix metrics_handler() .unwrap()/.expect() with let _ / .unwrap_or_default()
- autonomous_scaling.rs: Fix capital parse .expect() with .unwrap_or(0.0)
- autonomous_scaling.rs: Replace .find().cloned().unwrap() with filter_map()
- autonomous_scaling.rs: Replace .find().unwrap() on tier lookup with let-else
- autonomous_scaling.rs: Add #[allow] on test module
- allocation.rs: Fix .unwrap() on Decimal::from_f64_retain(0.20) with .unwrap_or(Decimal::ZERO)
- allocation.rs: Add #[allow] on test module
- orders.rs: Replace BigDecimal::from_str("0").unwrap() with BigDecimal::from(0_i64)
- orders.rs: Add #[allow] on test module
- universe.rs, dynamic_stop_loss.rs, strategies.rs: Add #[allow] on test modules
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>