follow-up to issue  functions that return () should be categorized as 'Default'
@@ -471,12 +471,16 @@ pub fn categorize_type(ty: &Type) -> CategorizedType {
panic!("Unsupported trait return type");
}
Type::Tuple(tuple) => {
+ if tuple.elems.len() == 0 {
+ CategorizedType::Default
+ } else {
let mut types = Vec::new();
for ty in &tuple.elems {
types.push(quote! {#ty}.to_string())
}
CategorizedType::Tuple(types)
}
+ }
_ => CategorizedType::Default,
}
}
