Repository navigation
feat: add file_names_raw iterator - #1082
Conversation
There was a problem hiding this comment.
Review Summary
This PR adds a file_names_raw iterator to ZipArchive, exposing the raw (bytes) file names from the central directory. The overall approach is sound — it mirrors file_names() and reuses the existing files map iteration.
One blocking issue found:
The return type impl Iterator<Item = &Box<[u8]>> violates the clippy::borrowed_box lint, which the project's CI enforces via cargo clippy --all-features --all-targets. This must be changed to impl Iterator<Item = &[u8]> (with .as_ref() in the map closure) to pass CI.
Minor note (not blocking): No test is included for the new file_names_raw method. The project guidelines encourage adding a test with each new feature — consider adding a simple test that calls file_names_raw() on a known archive and verifies the raw bytes match expected values.
You can now have the agent implement changes and create commits directly on your pull request's source branch. Simply comment with /q followed by your request in natural language to ask the agent to make changes.
helper for #1080