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:
@@ -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() {
|
||||
|
Reference in New Issue
Block a user