Removed Result from rendering 500 error

This commit is contained in:
Aldas 2020-12-16 02:55:27 +00:00 committed by GitHub
parent fabc68659b
commit 747f6c0d1e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -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]