From 6642c4403f9469b7d97749b922bbab92d82b8c37 Mon Sep 17 00:00:00 2001 From: Dirkjan Ochtman Date: Tue, 28 Jul 2020 11:54:15 +0200 Subject: Use modern dyn syntax to prevent warnings --- askama_shared/src/generator.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'askama_shared/src') 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<()> {", ); -- cgit