We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3bb90e6 commit 1c5c709Copy full SHA for 1c5c709
crates/storage/codecs/derive/src/compact/mod.rs
@@ -82,7 +82,7 @@ pub fn get_fields(data: &Data) -> FieldList {
82
);
83
load_field(&data_fields.unnamed[0], &mut fields, false);
84
}
85
- syn::Fields::Unit => todo!(),
+ syn::Fields::Unit => unimplemented!("Compact does not support unit structs"),
86
},
87
Data::Enum(data) => {
88
for variant in &data.variants {
@@ -106,7 +106,7 @@ pub fn get_fields(data: &Data) -> FieldList {
106
107
108
109
- Data::Union(_) => todo!(),
+ Data::Union(_) => unimplemented!("Compact does not support union types"),
110
111
112
fields
0 commit comments