Skip to content

Commit 232549f

Browse files
author
Jorge Aparicio
committed
make _bits public
it's required in some derivedFrom scenarios (when it's used across registers)
1 parent 112e72c commit 232549f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/lib.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1023,7 +1023,10 @@ pub fn gen_register(r: &Register,
10231023

10241024
mod_items.push(quote! {
10251025
impl #enum_name {
1026-
fn _bits(&self) -> #field_ty {
1026+
#[allow(missing_docs)]
1027+
#[doc(hidden)]
1028+
#[inline(always)]
1029+
pub fn _bits(&self) -> #field_ty {
10271030
match *self {
10281031
#(#arms),*
10291032
}

0 commit comments

Comments
 (0)