diff --git a/examples/diesel/src/main.rs b/examples/diesel/src/main.rs index 350a9ee5a..5c0e3724c 100644 --- a/examples/diesel/src/main.rs +++ b/examples/diesel/src/main.rs @@ -42,7 +42,7 @@ fn index(req: HttpRequest) -> Box> .and_then(|res| { match res { Ok(user) => Ok(httpcodes::HTTPOk.build().json(user)?), - Err(_) => Ok(httpcodes::HTTPInternalServerError.response()) + Err(_) => Ok(httpcodes::HTTPInternalServerError.into()) } }) .responder() diff --git a/examples/multipart/src/main.rs b/examples/multipart/src/main.rs index 84259ec1a..78c613622 100644 --- a/examples/multipart/src/main.rs +++ b/examples/multipart/src/main.rs @@ -39,7 +39,7 @@ fn index(mut req: HttpRequest) -> Box> } }) .finish() // <- Stream::finish() combinator from actix - .map(|_| httpcodes::HTTPOk.response()) + .map(|_| httpcodes::HTTPOk.into()) .responder() }