From a9132fd6c78d0cc740686d5acc89267f5fa2fc7b Mon Sep 17 00:00:00 2001 From: Jonas Platte Date: Thu, 31 Mar 2022 22:40:45 +0200 Subject: Simplify the implementation of askama_axum --- askama_shared/src/generator.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'askama_shared') 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))?; -- cgit