-
-
Notifications
You must be signed in to change notification settings - Fork 223
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
Version 0.10 places Copy value literals behind a reference where 0.9 did not #404
Comments
Sorry for breaking your templates! Are these types being passed to macros, or to custom filters? Can you give an example? We have some things in the works that will hopefully fix this. |
Just off the top of my head, boolean literals, i.e. |
As djc mentioned, it's in the works, that literals will be back to being moved by value. With the exception that fields from the template itself would still be referenced, and thus require If you have any specific examples, different than variations of that case, then feel free to share it. Also, hello fellow Dane! :) |
@agraven the issue should now be resolved. Feel free to try building with the repository as a dependency, to verify if all your issues have been resolved. If not, please re-open or create a new issue. [dependencies]
askama = { git = "https://github.com/djc/askama", rev = "f9db444" } Note that e.g. |
@vallentin When can we expect this change to be published to the crate? |
@danielalvsaaker I think we want to resolve a few more things, until we publish a new version. That said, @djc is in charge of publishing :) |
I opened #451 to discuss the next release. |
I have a large collection of templates that compiles perfectly fine with version 0.9 of askama, but when I try to upgrade to 0.10, I get a bunch of type errors because a bunch of
Copy
types that were previously passed as values now get placed behind a referenceThe text was updated successfully, but these errors were encountered: