We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 441bd42 + bac9703 commit f07c46cCopy full SHA for f07c46c
src/generate.rs
@@ -1428,12 +1428,12 @@ pub fn fields(
1428
if width == 1 {
1429
proxy_items.push(quote! {
1430
/// Sets the field bit
1431
- pub fn set_bit(self) -> &'a mut W {
+ pub #unsafety fn set_bit(self) -> &'a mut W {
1432
self.bit(true)
1433
}
1434
1435
/// Clears the field bit
1436
- pub fn clear_bit(self) -> &'a mut W {
+ pub #unsafety fn clear_bit(self) -> &'a mut W {
1437
self.bit(false)
1438
1439
});
0 commit comments