mirror of
https://gitlab.com/msrd0/gotham-restful.git
synced 2025-04-20 06:54:46 +00:00
update jsonwebtoken, futures, and hyper and co
This commit is contained in:
parent
fbcc626478
commit
f425f21ff3
11 changed files with 83 additions and 71 deletions
|
@ -58,7 +58,7 @@ fn expand(tokens : TokenStream) -> Result<TokenStream2, Error>
|
|||
{
|
||||
type Err = String;
|
||||
|
||||
fn from_body(body : #krate::Chunk, _content_type : #krate::Mime) -> Result<Self, Self::Err>
|
||||
fn from_body(body : #krate::export::Bytes, _content_type : #krate::Mime) -> Result<Self, Self::Err>
|
||||
{
|
||||
let body : &[u8] = &body;
|
||||
Ok(#body)
|
||||
|
|
|
@ -435,7 +435,7 @@ fn expand(method : Method, attrs : TokenStream, item : TokenStream) -> Result<To
|
|||
fn #method_ident(#(#args_def),*) -> #ret
|
||||
{
|
||||
#[allow(unused_imports)]
|
||||
use #krate::export::{Future, FromState};
|
||||
use #krate::export::FromState;
|
||||
|
||||
#block
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue