mirror of
https://gitlab.com/msrd0/gotham-restful.git
synced 2025-04-20 06:54:46 +00:00
remove FromBodyNoError and replace with std::convert::Infallible
This commit is contained in:
parent
4cd2474d90
commit
52679ad29d
3 changed files with 7 additions and 13 deletions
|
@ -120,9 +120,9 @@ pub fn expand_from_body(input : DeriveInput) -> Result<TokenStream>
|
|||
impl #generics #krate::FromBody for #ident #generics
|
||||
where #where_clause
|
||||
{
|
||||
type Err = #krate::FromBodyNoError;
|
||||
type Err = ::std::convert::Infallible;
|
||||
|
||||
fn from_body(#body_ident : #krate::gotham::hyper::body::Bytes, #type_ident : #krate::Mime) -> Result<Self, #krate::FromBodyNoError>
|
||||
fn from_body(#body_ident : #krate::gotham::hyper::body::Bytes, #type_ident : #krate::Mime) -> Result<Self, ::std::convert::Infallible>
|
||||
{
|
||||
#block
|
||||
Ok(#ctor)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue