aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatar Dirkjan Ochtman <dirkjan@ochtman.nl>2020-07-28 11:54:15 +0200
committerLibravatar Dirkjan Ochtman <dirkjan@ochtman.nl>2020-07-28 11:56:21 +0200
commit6642c4403f9469b7d97749b922bbab92d82b8c37 (patch)
treed35609ba9a4a38de17e87bda2631ac6f7e1cc923
parentd9a5b28f66ea2bf64c6b8649edbd0ab6037d0dd1 (diff)
downloadaskama-6642c4403f9469b7d97749b922bbab92d82b8c37.tar.gz
askama-6642c4403f9469b7d97749b922bbab92d82b8c37.tar.bz2
askama-6642c4403f9469b7d97749b922bbab92d82b8c37.zip
Use modern dyn syntax to prevent warnings
Diffstat (limited to '')
-rw-r--r--askama_shared/src/generator.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/askama_shared/src/generator.rs b/askama_shared/src/generator.rs
index f56ae4b..99b8d85 100644
--- a/askama_shared/src/generator.rs
+++ b/askama_shared/src/generator.rs
@@ -120,7 +120,7 @@ impl<'a, S: std::hash::BuildHasher> Generator<'a, S> {
fn impl_template(&mut self, ctx: &'a Context, buf: &mut Buffer) {
self.write_header(buf, "::askama::Template", None);
buf.writeln(
- "fn render_into(&self, writer: &mut ::std::fmt::Write) -> \
+ "fn render_into(&self, writer: &mut dyn ::std::fmt::Write) -> \
::askama::Result<()> {",
);