Skip to content

Commit

Permalink
Fix panic message compilation error in derive_struct
Browse files Browse the repository at this point in the history
  • Loading branch information
Swoorup committed Mar 29, 2024
1 parent 8bfdb23 commit 4b166b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arrow_convert_derive/src/derive_struct.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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::<Vec<&syn::Type>>();

Expand Down

0 comments on commit 4b166b0

Please sign in to comment.