File tree 2 files changed +5
-3
lines changed
2 files changed +5
-3
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 ` cargo doc ` constants generation
11
+
10
12
## [ v0.31.4] - 2024-01-03
11
13
12
14
- Custom prefix/case/suffix for identifiers (by ` svd2rust.toml ` config file)
Original file line number Diff line number Diff line change @@ -416,8 +416,8 @@ pub fn render_register_mod(
416
416
mod_items. extend ( quote ! {
417
417
#[ doc = #doc]
418
418
impl crate :: Writable for #regspec_ty {
419
- const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = #zero_to_modify_fields_bitmap;
420
- const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = #one_to_modify_fields_bitmap;
419
+ const ZERO_TO_MODIFY_FIELDS_BITMAP : #rty = #zero_to_modify_fields_bitmap;
420
+ const ONE_TO_MODIFY_FIELDS_BITMAP : #rty = #one_to_modify_fields_bitmap;
421
421
}
422
422
} ) ;
423
423
}
@@ -426,7 +426,7 @@ pub fn render_register_mod(
426
426
mod_items. extend ( quote ! {
427
427
#[ doc = #doc]
428
428
impl crate :: Resettable for #regspec_ty {
429
- const RESET_VALUE : Self :: Ux = #rv;
429
+ const RESET_VALUE : #rty = #rv;
430
430
}
431
431
} ) ;
432
432
}
You can’t perform that action at this time.
0 commit comments