From 8a05c16271e0ee7d8017a46d8d3423027f8ae57c Mon Sep 17 00:00:00 2001 From: René Kijewski Date: Wed, 12 Jan 2022 13:43:59 +0100 Subject: Fully qualify some more paths in generated code --- askama_shared/src/generator.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'askama_shared/src/generator.rs') diff --git a/askama_shared/src/generator.rs b/askama_shared/src/generator.rs index cd18819..72e2270 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))?; -- cgit