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

issue 529: simplify lifetime requirements #532

Merged

Conversation

lovasoa
Copy link
Contributor

@lovasoa lovasoa commented Sep 23, 2022

Only type annotations needed to be fixed, all the code actually already supported rendering shorter-lived templates.

This fixes #529

This is a breaking change, but it makes this API useful in more contexts, and even simplifies it a bit with fewer lifetime annotations, so I think it's worth it.

@sunng87

@lovasoa lovasoa changed the title issue 529 simplify lifetime requirements issue 529: simplify lifetime requirements Sep 23, 2022
@sunng87
Copy link
Owner

sunng87 commented Sep 24, 2022

@lovasoa Thank you for your effect on experimenting on this issue. There are some lint/test issues to address. The change is welcomed if it works for our test cases.

@lovasoa
Copy link
Contributor Author

lovasoa commented Sep 24, 2022

Thank you ! Sorry, I had forgotten to update the code that was behind feature flags, it's done now :)

@sunng87
Copy link
Owner

sunng87 commented Sep 24, 2022

It all passed. Thank you for this patch. It has reduced overall complexity of this library. I will prepare a 5.0 release with this, including other break changes.

@sunng87 sunng87 merged commit 3e803ef into sunng87:master Sep 24, 2022
@lovasoa lovasoa deleted the issue-529-simplify-lifetime-requirements branch September 24, 2022 10:50
@lovasoa
Copy link
Contributor Author

lovasoa commented Sep 24, 2022

Thanks to you, @sunng87, for maintaining this library 😃

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.

Rendering a template requires it to live for as long as the registry
2 participants