Skip to content

Commit 1c5c709

Browse files
authored
chore(codecs): replace todo with unimplemented in Compact derive (#19284)
1 parent 3bb90e6 commit 1c5c709

File tree

1 file changed

+2
-2
lines changed
  • crates/storage/codecs/derive/src/compact

1 file changed

+2
-2
lines changed

crates/storage/codecs/derive/src/compact/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ pub fn get_fields(data: &Data) -> FieldList {
8282
);
8383
load_field(&data_fields.unnamed[0], &mut fields, false);
8484
}
85-
syn::Fields::Unit => todo!(),
85+
syn::Fields::Unit => unimplemented!("Compact does not support unit structs"),
8686
},
8787
Data::Enum(data) => {
8888
for variant in &data.variants {
@@ -106,7 +106,7 @@ pub fn get_fields(data: &Data) -> FieldList {
106106
}
107107
}
108108
}
109-
Data::Union(_) => todo!(),
109+
Data::Union(_) => unimplemented!("Compact does not support union types"),
110110
}
111111

112112
fields

0 commit comments

Comments
 (0)