diff options
Diffstat (limited to 'askama_derive')
| -rw-r--r-- | askama_derive/src/generator.rs | 18 | 
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("e! { -                    include_bytes!(#path); -                }.to_string()); +                buf.writeln( +                    "e! { +                        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("e! { -                include_bytes!(#path); -            }.to_string()); +            buf.writeln( +                "e! { +                    include_bytes!(#path); +                } +                .to_string(), +            );          }          let size_hint = { | 
