1
0
Fork 0
mirror of https://gitlab.com/msrd0/gotham-restful.git synced 2025-04-20 06:54:46 +00:00

use Into<hyper::Body> for Response

This commit is contained in:
Dominic 2019-10-20 00:36:00 +02:00
parent 9e9b8869c9
commit 3a03dc60fa
Signed by: msrd0
GPG key ID: DCC8C247452E98F9
2 changed files with 46 additions and 32 deletions

View file

@ -131,7 +131,7 @@ where
F : FnOnce(&mut State) -> R,
R : ResourceResult
{
let res = get_result(&mut state).to_response();
let res = get_result(&mut state).into_response();
match res {
Ok(res) => {
let r = response_from(res, &state);
@ -170,7 +170,7 @@ where
}
};
let res = get_result(&mut state, body).to_response();
let res = get_result(&mut state, body).into_response();
match res {
Ok(res) => {
let r = response_from(res, &state);