aboutsummaryrefslogtreecommitdiffstats
path: root/askama_shared/src
diff options
context:
space:
mode:
authorLibravatar René Kijewski <kijewski@library.vetmed.fu-berlin.de>2022-01-12 13:43:59 +0100
committerLibravatar Dirkjan Ochtman <dirkjan@ochtman.nl>2022-01-12 15:32:56 +0100
commit8a05c16271e0ee7d8017a46d8d3423027f8ae57c (patch)
treeb4fda0294af4c62e16af51f2bf29336347a28b16 /askama_shared/src
parent332d741f212eb2aac7bfb2eec1df1f33bfb46a05 (diff)
downloadaskama-8a05c16271e0ee7d8017a46d8d3423027f8ae57c.tar.gz
askama-8a05c16271e0ee7d8017a46d8d3423027f8ae57c.tar.bz2
askama-8a05c16271e0ee7d8017a46d8d3423027f8ae57c.zip
Fully qualify some more paths in generated code
Diffstat (limited to 'askama_shared/src')
-rw-r--r--askama_shared/src/generator.rs6
1 files changed, 3 insertions, 3 deletions
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))?;