jgrusewski
436ddbd589
fix(clippy): Fix 43 unwrap_used violations in services
Applied Agent W4 patterns to services (api_gateway, trading_service, backtesting_service, ml_training_service):
Fixed Patterns:
- Pattern 1: current_dir().unwrap() → expect() (1 fix)
- Pattern 2: duration_since().unwrap() → expect() (2 fixes)
- Pattern 3: Collection.first/last().unwrap() → expect() (5 fixes)
- Pattern 5: serde_json operations → expect() (3 fixes)
- Pattern 6: Duration::from_std().unwrap() → expect() (2 fixes)
- Pattern 7: handle.join().unwrap() → expect() (1 fix)
- Pattern 8: .first()/.last() → expect() (11 fixes)
- Pattern 16: String::from_utf8() → expect() (8 fixes)
- Pattern 19: partial_cmp().unwrap() → unwrap_or(Equal) (9 fixes)
- Pattern 22: SystemTime operations → expect() (1 fix)
Total: 43 violations fixed
All services compile successfully with zero errors
Agent: W17
Phase: Clippy Bulk Fixes (Services)
Related: AGENT_W4_CLIPPY_PATTERNS.md
2025-10-23 15:25:04 +02:00
..
2025-10-23 14:58:32 +02:00
2025-10-23 14:58:32 +02:00
2025-10-23 15:25:04 +02:00
2025-10-07 23:28:04 +02:00
2025-10-18 01:11:14 +02:00
2025-10-23 13:36:34 +02:00
2025-10-23 13:36:34 +02:00
2025-10-19 09:10:55 +02:00
2025-10-18 01:11:14 +02:00
2025-10-23 13:36:34 +02:00
2025-10-19 09:10:55 +02:00
2025-10-19 09:10:55 +02:00
2025-10-19 09:10:55 +02:00
2025-10-19 09:10:55 +02:00
2025-10-19 09:10:55 +02:00
2025-10-23 13:36:34 +02:00