You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
From Rust 1.30, it is possible to specify the path directly in #[derive()]. Unfortunately, this notation does not work as the derived code assumes that Template is imported at the current module:
Compiling askama1 v0.1.0 (/home/ubnt-intrepid/askama1)
error[E0599]: no method named `render_into` found for type `&Template` in the current scope
--> src/lib.rs:3:10
|
3 | #[derive(askama::Template)]
| ^^^^^^^^^^^^^^^^
|
= help: items from traits can only be used if the trait is in scope
help: the following trait is implemented but not in scope, perhaps add a `use` for it:
|
4 | use askama::Template;
|
error: aborting due to previous error
For more information about this error, try `rustc --explain E0599`.
error: Could not compile `askama1`.
To learn more, run the command again with --verbose.
The text was updated successfully, but these errors were encountered:
From Rust 1.30, it is possible to specify the path directly in
#[derive()]
. Unfortunately, this notation does not work as the derived code assumes thatTemplate
is imported at the current module:The text was updated successfully, but these errors were encountered: