diff options
author | Jeremy Fitzhardinge <jeremy@goop.org> | 2022-09-28 10:00:30 -0700 |
---|---|---|
committer | Jeremy Fitzhardinge <jeremy@goop.org> | 2022-10-01 13:26:13 -0700 |
commit | 90d392205fe7c07cbc59b09679cde6cfc1e244b6 (patch) | |
tree | 125eaafdb08a85410fda5e3548bfab5a2284c579 | |
parent | aabc02506bcbd762552660a0b45cda6e15787cab (diff) | |
download | embassy-90d392205fe7c07cbc59b09679cde6cfc1e244b6.zip |
embassy-rp: inline I2c::regs
It just returns a literal constant, so there's no reason not to always inline it.
-rw-r--r-- | embassy-rp/src/i2c.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/embassy-rp/src/i2c.rs b/embassy-rp/src/i2c.rs index 52f910ce..ab56c935 100644 --- a/embassy-rp/src/i2c.rs +++ b/embassy-rp/src/i2c.rs @@ -499,6 +499,7 @@ macro_rules! impl_instance { type Interrupt = crate::interrupt::$irq; + #[inline] fn regs() -> pac::i2c::I2c { pac::$type } |