Skip to content

feat: add file_names_raw iterator - #1082

Merged
Pr0methean merged 3 commits into
masterfrom
attempt-1080
Oct 18, 2026
Merged

Pr0methean merged 3 commits into
masterfrom
attempt-1080

Conversation

@Its-Just-Nans

Copy link
Copy Markdown
Member

helper for #1080

@amazon-q-developer amazon-q-developer Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Comment thread src/read/zip_archive.rs Resolved
@Pr0methean
Pr0methean added this pull request to the merge queue Oct 18, 2026
@Pr0methean Pr0methean added this to the 9.0.6 milestone Oct 18, 2026
Merged via the queue into master with commit 9bbe61f Oct 18, 2026
125 checks passed
@Pr0methean
Pr0methean deleted the attempt-1080 branch October 18, 2026 10:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants