Skip to content

Fix zipper_head on a write zipper with a borrowed path - #127

Merged
luketpeterson merged 3 commits into
Adam-Vandervorst:masterfrom
imlvts:fix/zipper-head-borrowed-path
Sep 24, 2026
Merged

luketpeterson merged 3 commits into
Adam-Vandervorst:masterfrom
imlvts:fix/zipper-head-borrowed-path

Conversation

@imlvts

@imlvts imlvts commented Sep 23, 2026

Copy link
Copy Markdown
Collaborator

as_static_path_zipper asserted the zipper held no borrowed origin path, but write_zipper_at_path always does. Once buffers are prepared the path lives in prefix_buf, so drop the borrowed slice instead.

as_static_path_zipper asserted the zipper held no borrowed origin path,
but write_zipper_at_path always does. Once buffers are prepared the path
lives in prefix_buf, so drop the borrowed slice instead.
@luketpeterson

Copy link
Copy Markdown
Collaborator

Good catch. I ended up moving the fix to a slightly different spot. Merging.

@luketpeterson
luketpeterson merged commit eb4f2fa into Adam-Vandervorst:master Sep 24, 2026
4 checks passed
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