From f41d4ef15e50711b406daa4040e5f27df2b3455a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Kijewski?= Date: Wed, 12 Jan 2022 13:43:59 +0100 Subject: [PATCH] Fully qualify some more paths in generated code --- askama_shared/src/generator.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/askama_shared/src/generator.rs b/askama_shared/src/generator.rs index cd18819b3..72e22704a 100644 --- a/askama_shared/src/generator.rs +++ b/askama_shared/src/generator.rs @@ -154,7 +154,7 @@ impl<'a, S: std::hash::BuildHasher> Generator<'a, S> { }?; self.flush_ws(Ws(false, false)); - buf.writeln("Ok(())")?; + buf.writeln("::askama::Result::Ok(())")?; buf.writeln("}")?; buf.writeln("const EXTENSION: ::std::option::Option<&'static ::std::primitive::str> = ")?; @@ -320,7 +320,7 @@ impl<'a, S: std::hash::BuildHasher> Generator<'a, S> { self.write_header( buf, - "std::convert::TryInto<::askama_tide::tide::Body>", + "::std::convert::TryInto<::askama_tide::tide::Body>", None, )?; buf.writeln( @@ -994,7 +994,7 @@ impl<'a, S: std::hash::BuildHasher> Generator<'a, S> { } } - buf.writeln("write!(")?; + buf.writeln("::std::write!(")?; buf.indent(); buf.writeln("writer,")?; buf.writeln(&format!("{:#?},", &buf_format.buf))?;