Fix compilation on older nightlies

This commit is contained in:
konstin 2018-04-08 00:43:49 +02:00
parent 45bb09b3e8
commit ccbc73a385
1 changed files with 2 additions and 2 deletions

View File

@ -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()
}
}