diff --git a/derive/src/utils.rs b/derive/src/utils.rs index 841fb9ce..cf94f483 100644 --- a/derive/src/utils.rs +++ b/derive/src/utils.rs @@ -386,6 +386,6 @@ pub fn get_type_path_and_name(ty: &Type) -> GeneratorResult<(&TypePath, String)> .unwrap(), )), Type::Group(TypeGroup { elem, .. }) => get_type_path_and_name(&elem), - _ => return Err(Error::new_spanned(ty, "Invalid type").into()), + _ => Err(Error::new_spanned(ty, "Invalid type").into()), } }