aboutsummaryrefslogtreecommitdiffstats
path: root/askama_derive/src
diff options
context:
space:
mode:
authorLibravatar Dirkjan Ochtman <dirkjan@ochtman.nl>2019-02-17 20:56:31 +0100
committerLibravatar Juan Aguilar <mhpoin@gmail.com>2019-02-18 17:24:53 +0100
commit9aa40569b4a2dc76474d3e4d220afc12b065b511 (patch)
treef3eed42f3a38375b144920d3a464713b5f5509a7 /askama_derive/src
parentb88c3c2ae3c56df9c2eb559c81dbf228d68e0235 (diff)
downloadaskama-9aa40569b4a2dc76474d3e4d220afc12b065b511.tar.gz
askama-9aa40569b4a2dc76474d3e4d220afc12b065b511.tar.bz2
askama-9aa40569b4a2dc76474d3e4d220afc12b065b511.zip
Fix formatting for 1.32.0
Diffstat (limited to '')
-rw-r--r--askama_derive/src/generator.rs18
1 files changed, 12 insertions, 6 deletions
diff --git a/askama_derive/src/generator.rs b/askama_derive/src/generator.rs
index 7db4a49..b0630df 100644
--- a/askama_derive/src/generator.rs
+++ b/askama_derive/src/generator.rs
@@ -117,9 +117,12 @@ impl<'a> Generator<'a> {
};
if path_is_valid {
let path = path.to_str().unwrap();
- buf.writeln(&quote! {
- include_bytes!(#path);
- }.to_string());
+ buf.writeln(
+ &quote! {
+ include_bytes!(#path);
+ }
+ .to_string(),
+ );
}
}
@@ -624,9 +627,12 @@ impl<'a> Generator<'a> {
// Make sure the compiler understands that the generated code depends on the template file.
{
let path = path.to_str().unwrap();
- buf.writeln(&quote! {
- include_bytes!(#path);
- }.to_string());
+ buf.writeln(
+ &quote! {
+ include_bytes!(#path);
+ }
+ .to_string(),
+ );
}
let size_hint = {