Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Minor cleanup of DescendantRebaser #2902

Merged
merged 2 commits into from
Jan 31, 2024
Merged

Minor cleanup of DescendantRebaser #2902

merged 2 commits into from
Jan 31, 2024

Conversation

martinvonz
Copy link
Member

Seeing #2901 made me decide to send these commits I wrote a few days ago before they go stale. It doesn't look like anything conflicts with that PR. FYI, I'm working on #2600 a little bit here and there. I guess I should assign that to myself. I'll do that.

Checklist

If applicable:

  • I have updated CHANGELOG.md
  • I have updated the documentation (README.md, docs/, demos/)
  • I have updated the config schema (cli/src/config-schema.json)
  • I have added tests to cover my changes

Copy link
Contributor

@ilyagr ilyagr left a comment

Choose a reason for hiding this comment

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

LGTM.

It's good to know you're thinking about #2600!

lib/src/rewrite.rs Show resolved Hide resolved
The `rebase_next()` method is private, so I think we've addressed the
TODO.
`rebase_next()` returns an `Option<RebasedDescendant>`, but the only
way we use it is to decide whether to terminate the loop over
`to_visit`. Let's simplify by making the caller iterate over
`to_visit` instead.
@martinvonz martinvonz enabled auto-merge (rebase) January 31, 2024 07:20
@martinvonz martinvonz merged commit 9efa66e into main Jan 31, 2024
15 checks passed
@martinvonz martinvonz deleted the push-rrykxwzoomys branch January 31, 2024 07:27
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.

2 participants