Repository navigation
Replace Rc<Cell> builders with mutable references - #257
Closed
FalkWoldmann wants to merge 2 commits into
Closed
FalkWoldmann wants to merge 2 commits into
FalkWoldmann wants to merge 2 commits into
Conversation
Refactor `When` and rule builder APIs to mutate configs in place via `&mut` references, removing `Rc<Cell>` plumbing across proxy/server setup paths and deleting the now-unused `update_cell` helper.
FalkWoldmann
force-pushed
the
breakage_mut_ref
branch
from
September 27, 2026 20:26
adee488 to
0ef8bca
Compare
FalkWoldmann
marked this pull request as ready for review
September 28, 2026 03:36
Member
|
I would like to avoid breaking user code, what do you think, is it worth it? I ran a could of AI-based reviewed to estimate how large the impact is and it seems that it can break quite a few cases that are not obvious at first. Like these:
|
Member
Author
|
superseded by #320 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Refactor
Whenand rule builder APIs to mutate configs in place via&mutreferences, removingRc<Cell>plumbing across proxy/server setup paths and deleting the now-unusedupdate_cellhelper.Not sure if this would break usage. imo the risk of breakage is quite small but I need to ponder on it