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:
parent
9e9b8869c9
commit
3a03dc60fa
2 changed files with 46 additions and 32 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue