1
0
mirror of https://github.com/fafhrd91/actix-web synced 2025-08-20 12:45:41 +02:00

Use more ergonomic actix_web::Error instead of http::Error for HttpResponseBuilder::body()

This commit is contained in:
Nikolay Kim
2018-03-21 20:15:52 -07:00
parent e8a1850c79
commit e49910cdab
4 changed files with 26 additions and 23 deletions

View File

@@ -2,7 +2,7 @@ use std::marker::PhantomData;
use regex::Regex;
use futures::future::{Future, ok, err};
use http::{header, StatusCode, Error as HttpError};
use http::{header, StatusCode};
use body::Body;
use error::Error;
@@ -412,7 +412,7 @@ impl NormalizePath {
}
impl<S> Handler<S> for NormalizePath {
type Result = Result<HttpResponse, HttpError>;
type Result = Result<HttpResponse, Error>;
fn handle(&mut self, req: HttpRequest<S>) -> Self::Result {
if let Some(router) = req.router() {