Skip to content

Commit

Permalink
Fully qualify some more paths in generated code
Browse files Browse the repository at this point in the history
  • Loading branch information
Kijewski authored and djc committed Jan 12, 2022
1 parent 332d741 commit 8a05c16
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions askama_shared/src/generator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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> = ")?;
Expand Down Expand Up @@ -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(
Expand Down Expand Up @@ -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))?;
Expand Down

0 comments on commit 8a05c16

Please sign in to comment.