Skip to content

Eliminate RenderContextInner#662

Merged
sunng87 merged 1 commit into
sunng87:masterfrom
cmrschwarz:eliminate_rc_inner
Jul 19, 2024
Merged

Eliminate RenderContextInner#662
sunng87 merged 1 commit into
sunng87:masterfrom
cmrschwarz:eliminate_rc_inner

Conversation

@cmrschwarz

@cmrschwarz cmrschwarz commented Jul 17, 2024

Copy link
Copy Markdown
Contributor

Hey, I realized that there's one last thing I think we could consider before v6.0.

Now that we no longer clone the RenderContext we could get rid of the slightly hacky RenderContextInner
and the whole writing through an Rc idiom associated with it.

I know I initially said that I don't expect any more breaking changes,
but I missed that this narrows the lifetime contract on the public RenderContext type.
This shouldn't really affect anybody ('reg: 'rc is basically assumed everwhere already),
but as a matter of technicality might be semver incompatible.

This should now really be the last breaking change in the indent patch series though :).

@coveralls

Copy link
Copy Markdown

Coverage Status

coverage: 81.95% (+0.4%) from 81.548%
when pulling 64b709c on cmrschwarz:eliminate_rc_inner
into 080b5e0 on sunng87:master.

@sunng87 sunng87 left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Sounds good to me!

@sunng87 sunng87 merged commit 0af6fdc into sunng87:master Jul 19, 2024
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.

3 participants