We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0ad21da commit d7ac944Copy full SHA for d7ac944
2 files changed
CHANGELOG.md
@@ -11,6 +11,10 @@ incremented for features.
11
12
## [Unreleased]
13
14
+### Features
15
+
16
+* lang: Ignore `Unnamed` structs instead of panic ([#605](https://github.com/project-serum/anchor/pull/605)).
17
18
## [0.13.2] - 2021-08-11
19
20
### Fixes
lang/syn/src/idl/file.rs
@@ -384,7 +384,8 @@ fn parse_ty_defs(ctx: &CrateContext) -> Result<Vec<IdlTypeDefinition>> {
384
})
385
386
.collect::<Result<Vec<IdlField>>>(),
387
- _ => panic!("Only named structs are allowed."),
+ syn::Fields::Unnamed(_) => return None,
388
+ _ => panic!("Empty structs are allowed."),
389
};
390
391
Some(fields.map(|fields| IdlTypeDefinition {
0 commit comments