We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 26baf2c commit 9a59425Copy full SHA for 9a59425
CHANGELOG.md
@@ -30,6 +30,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
30
31
### Changed
32
33
+- [breaking-change] make `write_with_zero` method `unsafe` because the way it is
34
+
35
- [breaking-change] remove `Variant<U, ENUM_A>`, use `Option<ENUM_A>` instead
36
37
- split out register size type (`RawType`) from `ResetValue` trait
src/generate/generic.rs
@@ -123,7 +123,7 @@ where
123
///
124
/// Similar to `write`, but unused bits will contain 0.
125
#[inline(always)]
126
- pub fn write_with_zero<F>(&self, f: F)
+ pub unsafe fn write_with_zero<F>(&self, f: F)
127
where
128
F: FnOnce(&mut REG::Writer) -> &mut W<REG>
129
{
0 commit comments