This commit is contained in:
naskya 2024-07-12 05:53:08 +09:00
parent b0503a1a0e
commit 144c4c7adf
Signed by: naskya
GPG key ID: 712D413B3A9FED5C

View file

@ -1,6 +1,6 @@
use syn::{punctuated::Punctuated, spanned::Spanned};
pub(crate) fn struct_fields(struct_data: &syn::Data) -> &Punctuated<syn::Field, syn::token::Comma> {
pub(crate) fn struct_fields(
struct_data: &syn::Data,
) -> &syn::punctuated::Punctuated<syn::Field, syn::token::Comma> {
match struct_data {
syn::Data::Struct(syn::DataStruct {
fields: syn::Fields::Named(syn::FieldsNamed { named, .. }),