Skip to content

Commit c82d36c

Browse files
committed
Add #[inline(always)] to deref implementations.
See #287.
1 parent 4deea23 commit c82d36c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/generate/peripheral.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ pub fn render(
6666
impl Deref for #name_pc {
6767
type Target = #base::RegisterBlock;
6868

69+
#[inline(always)]
6970
fn deref(&self) -> &Self::Target {
7071
unsafe { &*#name_pc::ptr() }
7172
}

0 commit comments

Comments
 (0)