Skip to content

issue 529: simplify lifetime requirements#532

Merged
sunng87 merged 6 commits into
sunng87:masterfrom
lovasoa:issue-529-simplify-lifetime-requirements
Sep 24, 2022
Merged

issue 529: simplify lifetime requirements#532
sunng87 merged 6 commits into
sunng87:masterfrom
lovasoa:issue-529-simplify-lifetime-requirements

Conversation

@lovasoa

@lovasoa lovasoa commented Sep 23, 2022

Copy link
Copy Markdown
Contributor

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

sunng87 commented Sep 24, 2022

Copy link
Copy Markdown
Owner

@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

lovasoa commented Sep 24, 2022

Copy link
Copy Markdown
Contributor Author

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

@sunng87

sunng87 commented Sep 24, 2022

Copy link
Copy Markdown
Owner

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

lovasoa commented Sep 24, 2022

Copy link
Copy Markdown
Contributor Author

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