-
Notifications
You must be signed in to change notification settings - Fork 308
Derive Clone for tera::Error #966
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
Comments
The issue is always io::Error which cannot be cloned |
I may be misunderstanding -- the Tera |
Ah true for some reasons i thought it was io:Error. Tera2 already has Clone implemented: https://github.com/Keats/tera2/blob/master/tera/src/errors.rs#L35 |
Didn't even know about Tera2, thanks! |
It's a WIP working pretty well already and with some experiments like Keats/tera2#51 |
This is also sort of a wishlist item for v2 (#637) but OTOH could be added to existing version without breaking API compat.
Use case: obtaining a pre-parsed Tera instance in multiple functions throughout a module.
The text was updated successfully, but these errors were encountered: