mirror of https://github.com/fafhrd91/actix-web
Removed Result from rendering 500 error
This commit is contained in:
parent
fabc68659b
commit
747f6c0d1e
|
@ -181,11 +181,11 @@ mod tests {
|
||||||
|
|
||||||
fn render_500_async<B: 'static>(
|
fn render_500_async<B: 'static>(
|
||||||
mut res: ServiceResponse<B>,
|
mut res: ServiceResponse<B>,
|
||||||
) -> Result<ErrorHandlerResponse<B>> {
|
) -> ErrorHandlerResponse<B> {
|
||||||
res.response_mut()
|
res.response_mut()
|
||||||
.headers_mut()
|
.headers_mut()
|
||||||
.insert(CONTENT_TYPE, HeaderValue::from_static("0001"));
|
.insert(CONTENT_TYPE, HeaderValue::from_static("0001"));
|
||||||
Ok(ErrorHandlerResponse::Future(ok(res).boxed_local()))
|
ErrorHandlerResponse::Future(ok(res).boxed_local())
|
||||||
}
|
}
|
||||||
|
|
||||||
#[actix_rt::test]
|
#[actix_rt::test]
|
||||||
|
|
Loading…
Reference in New Issue