Skip to content

Commit 8b39c1f

Browse files
committed
changelog
1 parent 82ff36f commit 8b39c1f

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

CHANGELOG.md

+2
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
1111

1212
- `variant()` method for field reader and `Variant` enum for fields with reserved values
1313

14+
- Field readers and writers use one enum where it is possible
15+
1416
## [v0.15.2] - 2019-07-29
1517

1618
- No changes, just fixing the metadata since crates.io didn't like the keywords

src/generate/register.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -358,7 +358,7 @@ pub fn fields(
358358
}
359359
});
360360

361-
if let Some(base) = base.as_ref() {
361+
if let Some(base) = &base {
362362
let pc = base.field.to_sanitized_upper_case();
363363
let base_pc_r = Ident::from(&*format!("{}_A", pc));
364364
let base_pc_r = derive_from_base(mod_items, &base, &pc_r, &base_pc_r, f.name);

0 commit comments

Comments
 (0)