Skip to content

Refactor tree::peel_to_entry to make the intent more obvious#2492

Open
datdenkikniet wants to merge 2 commits intoGitoxideLabs:mainfrom
datdenkikniet:peel_to_entry
Open

Refactor tree::peel_to_entry to make the intent more obvious#2492
datdenkikniet wants to merge 2 commits intoGitoxideLabs:mainfrom
datdenkikniet:peel_to_entry

Conversation

@datdenkikniet
Copy link
Contributor

@datdenkikniet datdenkikniet commented Mar 26, 2026

To me the intent is clearer this way, and I don't think we do any more or less work than before. Even though self is a Tree, the find() calls can invalidate this already so tracking the data ID instead of the last tree ID felt odd.

The first commit is separate just to fix what I asked about in my comment in #2489. The MSRV check passes, so I think it's fine :D

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant