Skip to content

Remove unused lifetime parameter on SyntaxAndCache#714

Merged
GuillaumeGomez merged 1 commit intoaskama-rs:mainfrom
jplatte:jplatte/lt-refactor
Mar 24, 2026
Merged

Remove unused lifetime parameter on SyntaxAndCache#714
GuillaumeGomez merged 1 commit intoaskama-rs:mainfrom
jplatte:jplatte/lt-refactor

Conversation

@jplatte
Copy link
Copy Markdown
Contributor

@jplatte jplatte commented Mar 24, 2026

… that is always 'static.

Small refactor on the ways towards closing #594. In working on this, I realized that it will be a breaking change (not this PR, but Syntax will have to change to hold either Cow<'a, str> fields or plain owned types, I'm pretty sure).

Let me know what you think about that.

@jplatte jplatte marked this pull request as draft March 24, 2026 19:49
@jplatte jplatte force-pushed the jplatte/lt-refactor branch from 1a54f6f to d6fd8ef Compare March 24, 2026 19:52
@jplatte jplatte changed the title Remove unused lifetime parameters Remove unused lifetime parameter on SyntaxAndCache Mar 24, 2026
@jplatte jplatte marked this pull request as ready for review March 24, 2026 19:58
@GuillaumeGomez
Copy link
Copy Markdown
Collaborator

Simplification of lifetimes is welcome. :)

Thanks!

@GuillaumeGomez GuillaumeGomez merged commit c2a8a9f into askama-rs:main Mar 24, 2026
50 checks passed
@jplatte jplatte deleted the jplatte/lt-refactor branch March 24, 2026 21:14
GuillaumeGomez added a commit that referenced this pull request Mar 24, 2026
Remove unused lifetime parameter on SyntaxAndCache
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.

2 participants