File tree 2 files changed +3
-1
lines changed
2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/).
7
7
8
8
## [ Unreleased]
9
9
10
+ - Fix ` enumeratedValues ` with ` isDefault ` only
11
+
10
12
## [ v0.33.4] - 2024-06-16
11
13
12
14
- Add ` html-url ` option to access ` svdtools html ` files from docs
Original file line number Diff line number Diff line change @@ -805,7 +805,7 @@ pub fn fields(
805
805
// if there's no variant defined in enumeratedValues, generate enumeratedValues with new-type
806
806
// wrapper struct, and generate From conversation only.
807
807
// else, generate enumeratedValues into a Rust enum with functions for each variant.
808
- if variants. is_empty ( ) {
808
+ if variants. is_empty ( ) && def . is_none ( ) {
809
809
// generate struct VALUE_READ_TY_A(fty) and From<fty> for VALUE_READ_TY_A.
810
810
add_with_no_variants (
811
811
mod_items,
You can’t perform that action at this time.
0 commit comments