From 2723c2ab47333a9ce6d1c3cb302682815a7a46e0 Mon Sep 17 00:00:00 2001 From: sokomishalov Date: Tue, 29 Jun 2021 19:05:58 +0300 Subject: [PATCH] fix `NoArgsConstructor` visibility (#4) --- src/no_args_constructor.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/no_args_constructor.rs b/src/no_args_constructor.rs index 7cf5e80..010a35b 100644 --- a/src/no_args_constructor.rs +++ b/src/no_args_constructor.rs @@ -21,7 +21,7 @@ pub(crate) fn no_args_constructor(input: TokenStream) -> TokenStream { TokenStream::from(quote! { impl #impl_generics #name #ty_generics #where_clause { // FIXME overloading issue in case of using with AllArgsConstructor - fn new_default() -> Self { + pub fn new_default() -> Self { Self { #( #structure_params