aboutsummaryrefslogtreecommitdiffstats
path: root/askama_shared/src/generator.rs
diff options
context:
space:
mode:
authorLibravatar Jonas Platte <jplatte+git@posteo.de>2022-03-31 22:40:45 +0200
committerLibravatar Dirkjan Ochtman <dirkjan@ochtman.nl>2022-03-31 23:12:21 +0200
commita9132fd6c78d0cc740686d5acc89267f5fa2fc7b (patch)
tree1b6f544513fdfcc41814bde23c86b6986d28ab01 /askama_shared/src/generator.rs
parent521834209beefdce1d0cba2a57d5cc8c303267ab (diff)
downloadaskama-a9132fd6c78d0cc740686d5acc89267f5fa2fc7b.tar.gz
askama-a9132fd6c78d0cc740686d5acc89267f5fa2fc7b.tar.bz2
askama-a9132fd6c78d0cc740686d5acc89267f5fa2fc7b.zip
Simplify the implementation of askama_axum
Diffstat (limited to 'askama_shared/src/generator.rs')
-rw-r--r--askama_shared/src/generator.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/askama_shared/src/generator.rs b/askama_shared/src/generator.rs
index c9e482d..fc520d8 100644
--- a/askama_shared/src/generator.rs
+++ b/askama_shared/src/generator.rs
@@ -292,7 +292,7 @@ impl<'a, S: std::hash::BuildHasher> Generator<'a, S> {
buf.writeln("#[inline]")?;
buf.writeln(
"fn into_response(self)\
- -> ::askama_axum::Response<::askama_axum::BoxBody> {",
+ -> ::askama_axum::Response {",
)?;
let ext = self.input.extension().unwrap_or("txt");
buf.writeln(&format!("::askama_axum::into_response(&self, {:?})", ext))?;