Skip to content

Commit

Permalink
Impl for String type parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
anxiousmodernman committed Jun 11, 2018
1 parent 7d04183 commit b458ed8
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions maud/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<String> {
impl Responder for PreEscaped<String> {
type Item = HttpResponse;
type Error = std::error::Error;
fn respond_to(self, req: &HttpRequest<S>) -> Result<Self::Item, Self::Error> {
type Error = Error;
fn respond_to<String>(self, req: &HttpRequest<String>) -> Result<Self::Item, Self::Error> {
unimplemented!()
}
}
Expand Down

0 comments on commit b458ed8

Please sign in to comment.