Skip to content

Commit

Permalink
updated for actix-web 4.0.0-beta.14
Browse files Browse the repository at this point in the history
  • Loading branch information
CrunkLord420 authored and djc committed Dec 14, 2021
1 parent 9531747 commit 228f6b2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions askama_actix/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ readme = "README.md"
edition = "2018"

[dependencies]
actix-web = { version = "4.0.0-beta.10", default-features = false }
actix-web = { version = "4.0.0-beta.14", default-features = false }
askama = { version = "0.11.0", path = "../askama", default-features = false, features = ["with-actix-web", "mime", "mime_guess"] }
bytes = { version = "1" }
futures-util = { version = "0.3" }

[dev-dependencies]
actix-rt = { version = "2", default-features = false }
actix-test = "0.1.0-beta.5"
actix-test = "0.1.0-beta.8"
3 changes: 2 additions & 1 deletion askama_shared/src/generator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -213,9 +213,10 @@ impl<'a, S: std::hash::BuildHasher> Generator<'a, S> {
// Implement Actix-web's `Responder`.
fn impl_actix_web_responder(&mut self, buf: &mut Buffer) -> Result<(), CompileError> {
self.write_header(buf, "::actix_web::Responder", None)?;
buf.writeln("type Body = actix_web::body::BoxBody;")?;
buf.writeln(
"fn respond_to(self, _req: &::actix_web::HttpRequest) \
-> ::actix_web::HttpResponse {",
-> ::actix_web::HttpResponse<Self::Body> {",
)?;

buf.writeln("use ::askama_actix::TemplateToResponse;")?;
Expand Down

0 comments on commit 228f6b2

Please sign in to comment.