diff --git a/optionalize-derive/src/util.rs b/optionalize-derive/src/util.rs index 7dfdac2..7d7896f 100644 --- a/optionalize-derive/src/util.rs +++ b/optionalize-derive/src/util.rs @@ -1,6 +1,6 @@ -use syn::{punctuated::Punctuated, spanned::Spanned}; - -pub(crate) fn struct_fields(struct_data: &syn::Data) -> &Punctuated { +pub(crate) fn struct_fields( + struct_data: &syn::Data, +) -> &syn::punctuated::Punctuated { match struct_data { syn::Data::Struct(syn::DataStruct { fields: syn::Fields::Named(syn::FieldsNamed { named, .. }),