diff options
author | Dirkjan Ochtman <dirkjan@ochtman.nl> | 2020-07-28 11:54:15 +0200 |
---|---|---|
committer | Dirkjan Ochtman <dirkjan@ochtman.nl> | 2020-07-28 11:56:21 +0200 |
commit | 6642c4403f9469b7d97749b922bbab92d82b8c37 (patch) | |
tree | d35609ba9a4a38de17e87bda2631ac6f7e1cc923 /askama_shared/src | |
parent | d9a5b28f66ea2bf64c6b8649edbd0ab6037d0dd1 (diff) | |
download | askama-6642c4403f9469b7d97749b922bbab92d82b8c37.tar.gz askama-6642c4403f9469b7d97749b922bbab92d82b8c37.tar.bz2 askama-6642c4403f9469b7d97749b922bbab92d82b8c37.zip |
Use modern dyn syntax to prevent warnings
Diffstat (limited to 'askama_shared/src')
-rw-r--r-- | askama_shared/src/generator.rs | 2 |
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<()> {", ); |