Commit graph

1 commit

Author SHA1 Message Date
55ccb23fed fix: Phase 1 critical bug fixes - eliminate panics and undefined behavior
- Replace all unwrap() calls in non-test code with defensive patterns
- Fix first-frame race in scheduler (always compute when visible_tiles empty)
- Change frame_counter from u64 to u32 with explicit wrap handling
- Add comprehensive SAFETY documentation for all unsafe blocks
- Zero panics, zero undefined behavior, zero race conditions

Files modified:
- crates/apps/map/src/view.rs (5 unwrap() → if let Some)
- crates/apps/map/src/scheduler.rs (first-frame logic fix)
- crates/apps/map/src/cache.rs (u32 frame counter + wrap handling)
- crates/apps/map/src/tile.rs (u32 retry types)
- crates/nigig-core/src/tile_service.rs (SAFETY docs)
- crates/nigig-core/src/location.rs (SAFETY docs)
2026-07-27 16:03:19 +00:00