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

Refactor ReDoc to take Cow<'static, str> instead of borrowed str #869

Merged
merged 3 commits into from
Feb 19, 2024

Conversation

simongoricar
Copy link
Contributor

Same thing as #867, except I modified ReDoc this time.

Breaking changes

Just like #867: I think the removal of the two lifetime parameters on ReDoc can break some code (e.g. when implementing custom traits for ReDoc). As far as the method parameters are concerned, I don't think there are any breaking changes due to the Into<Cow<'static, str> generic.

Copy link
Owner

@juhaku juhaku left a comment

Choose a reason for hiding this comment

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

Great, 👍

@juhaku
Copy link
Owner

juhaku commented Feb 19, 2024

Just like #867: I think the removal of the two lifetime parameters on ReDoc can break some code (e.g. when implementing custom traits for ReDoc). As far as the method parameters are concerned, I don't think there are any breaking changes due to the Into<Cow<'static, str> generic.

That is true, but the changes are low, but sure when the release is done this is going to be a major release. 🙂 Just to be explisit about possibility of stuff breaking.

@juhaku juhaku merged commit 7b74942 into juhaku:master Feb 19, 2024
5 checks passed
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.

None yet

2 participants