Commit f4fd7def authored by Benjamin Woodruff's avatar Benjamin Woodruff

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: 's avatarClaude <noreply@anthropic.com>
parent d0ac1ecd
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment