From 4b166b0cc49a48338b3cdcd7d67e3dc077fba52a Mon Sep 17 00:00:00 2001 From: Swoorup Joshi Date: Fri, 29 Mar 2024 17:11:05 +1100 Subject: [PATCH] Fix panic message compilation error in derive_struct --- arrow_convert_derive/src/derive_struct.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arrow_convert_derive/src/derive_struct.rs b/arrow_convert_derive/src/derive_struct.rs index 6427438..da358fe 100644 --- a/arrow_convert_derive/src/derive_struct.rs +++ b/arrow_convert_derive/src/derive_struct.rs @@ -78,7 +78,7 @@ impl<'a> From<&'a DeriveStruct> for Common<'a> { .map(|field| match &field.field_type { syn::Type::Path(_) => &field.field_type, syn::Type::Array(_) => &field.field_type, - x => panic!("Only types are supported atm: {:#?}", x), + _ => panic!("Only `Path` and `Array` types are supported atm"), }) .collect::>();