feat (cosmic-config): iced subscription

This commit is contained in:
Ashley Wulber 2023-05-19 17:30:54 -04:00
parent 76fd9207e5
commit c2ddc97685
No known key found for this signature in database
GPG key ID: 5216D4F46A90A820
3 changed files with 126 additions and 5 deletions

View file

@ -15,7 +15,7 @@ pub fn cosmic_config_entry_derive(input: TokenStream) -> TokenStream {
fn impl_cosmic_config_entry_macro(ast: &syn::DeriveInput) -> TokenStream {
let name = &ast.ident;
// Get the fields of the struct
// Get the fields of the struct
let fields = match ast.data {
syn::Data::Struct(ref data_struct) => match data_struct.fields {
syn::Fields::Named(ref fields) => &fields.named,
@ -54,7 +54,7 @@ fn impl_cosmic_config_entry_macro(ast: &syn::DeriveInput) -> TokenStream {
let mut errors = Vec::new();
#(#get_each_config_field)*
if errors.is_empty() {
Ok(default)
} else {