Address review: FxIndexSet, from_pairs, Box::new([]), try_from
- Use FxIndexSet instead of FxIndexMap in build_indexed_primary, leveraging
insert_full to get indices directly.
- Rewrite modules() and modules_with_affecting_sources() in terms of from_pairs.
- Replace Default::default() with explicit Box::new([]) for empty boxed slices.
- Replace `as usize` casts with usize::try_from().unwrap() throughout.
- Use try_into().unwrap() for usize->u32 in build_indexed_primary.
Co-Authored-By:
Claude <noreply@anthropic.com>
Showing
This diff is collapsed.
Please
register
or
sign in
to comment