From d77553d826f3c90999e0dd84f35cac3690c3d0ca Mon Sep 17 00:00:00 2001 From: Michael Alyn Miller Date: Sat, 4 Dec 2021 16:49:06 -0800 Subject: Update axum to 0.4 (by switching to axum-core) --- askama_shared/src/generator.rs | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'askama_shared/src/generator.rs') diff --git a/askama_shared/src/generator.rs b/askama_shared/src/generator.rs index 368db9f..738b878 100644 --- a/askama_shared/src/generator.rs +++ b/askama_shared/src/generator.rs @@ -227,12 +227,10 @@ impl<'a, S: std::hash::BuildHasher> Generator<'a, S> { // Implement Axum's `IntoResponse`. fn impl_axum_into_response(&mut self, buf: &mut Buffer) -> Result<(), CompileError> { - self.write_header(buf, "::axum::response::IntoResponse", None)?; + self.write_header(buf, "::askama_axum::IntoResponse", None)?; buf.writeln( - "type Body = ::axum::body::Full<::axum::body::Bytes>;\n\ - type BodyError = std::convert::Infallible;\n\ - fn into_response(self)\ - -> ::axum::http::Response {", + "fn into_response(self)\ + -> ::askama_axum::Response<::askama_axum::BoxBody> {", )?; let ext = self.input.extension().unwrap_or("txt"); buf.writeln(&format!("::askama_axum::into_response(&self, {:?})", ext))?; -- cgit