Skip to content

Commit 11e11f0

Browse files
bors[bot]m-ou-se
andauthored
Merge #389
389: Add `#[inline(always)]` to deref implementations. r=therealprof a=m-ou-se See #287. Co-authored-by: Mara Bos <m-ou.se@m-ou.se>
2 parents 85750af + c82d36c commit 11e11f0

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)