diff options
Diffstat (limited to 'askama_derive/src/generator.rs')
-rw-r--r-- | askama_derive/src/generator.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/askama_derive/src/generator.rs b/askama_derive/src/generator.rs index 48a3798..08c1de1 100644 --- a/askama_derive/src/generator.rs +++ b/askama_derive/src/generator.rs @@ -445,8 +445,7 @@ impl<'a> Generator<'a> { "{} {{", quote!(fn from(value: &#ident #orig_ty_generics) -> Self) ))?; - let ext = self.input.extension().unwrap_or("txt"); - buf.writeln(&format!("::askama_hyper::respond(value, {:?})", ext))?; + buf.writeln("::askama_hyper::respond(value)")?; buf.writeln("}")?; buf.writeln("}") } |