Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/generate/register.rs
Original file line number Diff line number Diff line change
Expand Up @@ -741,11 +741,13 @@ pub fn fields(
if width == 1 {
proxy_items.push(quote! {
///Sets the field bit
#[inline(always)]
pub #unsafety fn set_bit(self) -> &'a mut W {
self.bit(true)
}

///Clears the field bit
#[inline(always)]
pub #unsafety fn clear_bit(self) -> &'a mut W {
self.bit(false)
}
Expand Down