From b458ed8574c56a30140701ea5a7eaa73a5eec9f6 Mon Sep 17 00:00:00 2001 From: Coleman McFarland Date: Mon, 11 Jun 2018 15:16:16 -0700 Subject: [PATCH] Impl for String type parameter Refs #135 --- maud/src/lib.rs | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) 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!() } }