Fix compilation on older nightlies
This commit is contained in:
parent
45bb09b3e8
commit
ccbc73a385
|
@ -38,8 +38,8 @@ pub struct FnSpec<'a> {
|
|||
|
||||
pub fn get_return_info(output: &syn::FunctionRetTy) -> syn::Ty {
|
||||
match output {
|
||||
syn::FunctionRetTy::Default => syn::Ty::Tup(vec![]),
|
||||
syn::FunctionRetTy::Ty(ref ty) => ty.clone()
|
||||
&syn::FunctionRetTy::Default => syn::Ty::Tup(vec![]),
|
||||
&syn::FunctionRetTy::Ty(ref ty) => ty.clone()
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue