diff --git a/maud/src/lib.rs b/maud/src/lib.rs index 79d07402..db3ec7ac 100644 --- a/maud/src/lib.rs +++ b/maud/src/lib.rs @@ -194,12 +194,13 @@ mod rocket_support { #[cfg(feature = "actix-web")] mod actix_support { - use actix_web::{Responder, HttpResponse, HttpRequest}; + use PreEscaped; + use actix_web::{Responder, HttpResponse, HttpRequest, Error}; - impl Responder<'static> for PreEscaped { + impl Responder for PreEscaped { type Item = HttpResponse; - type Error = std::error::Error; - fn respond_to(self, req: &HttpRequest) -> Result { + type Error = Error; + fn respond_to(self, req: &HttpRequest) -> Result { unimplemented!() } }