diff options
author | 2019-10-09 12:53:05 +0200 | |
---|---|---|
committer | 2019-10-29 07:47:24 +0100 | |
commit | 073c8f059b7b68543b944059f681bc67ab809d5e (patch) | |
tree | 45c30198060b578b64868bb591c2a56ae8d6baae /src/interrupt.rs | |
parent | 1608a660034bcc4334a6e0ca2d363c6b6bb94228 (diff) | |
download | cortex-m-073c8f059b7b68543b944059f681bc67ab809d5e.tar.gz cortex-m-073c8f059b7b68543b944059f681bc67ab809d5e.tar.zst cortex-m-073c8f059b7b68543b944059f681bc67ab809d5e.zip |
Add `#[inline]` to some more functions.
Now the only public non-inline functions left are:
- write_all
- write_aligned
- All (derived) Debug implementations
(Checked using Clippy's missing_inline_in_public_items lint.)
Diffstat (limited to 'src/interrupt.rs')
-rw-r--r-- | src/interrupt.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/interrupt.rs b/src/interrupt.rs index 58f552a..2d53865 100644 --- a/src/interrupt.rs +++ b/src/interrupt.rs @@ -57,6 +57,7 @@ pub unsafe fn enable() { /// Execute closure `f` in an interrupt-free context. /// /// This as also known as a "critical section". +#[inline] pub fn free<F, R>(f: F) -> R where F: FnOnce(&CriticalSection) -> R, |