aboutsummaryrefslogtreecommitdiff
path: root/src/interrupt.rs
diff options
context:
space:
mode:
authorGravatar Jorge Aparicio <jorge@japaric.io> 2017-05-07 16:50:00 -0500
committerGravatar Jorge Aparicio <jorge@japaric.io> 2017-05-07 16:50:00 -0500
commit46a74971039373eb9642ce990fb9e093048f80a6 (patch)
tree32d99e92ece323c1785774e32283b8bc75462c8e /src/interrupt.rs
parent70b967629e31a9d6581ea5fc14d2880f0cc32eab (diff)
downloadcortex-m-46a74971039373eb9642ce990fb9e093048f80a6.tar.gz
cortex-m-46a74971039373eb9642ce990fb9e093048f80a6.tar.zst
cortex-m-46a74971039373eb9642ce990fb9e093048f80a6.zip
remove inner unsafe block from interrupt::enable
Diffstat (limited to 'src/interrupt.rs')
-rw-r--r--src/interrupt.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/interrupt.rs b/src/interrupt.rs
index 412c483..abf9348 100644
--- a/src/interrupt.rs
+++ b/src/interrupt.rs
@@ -55,7 +55,7 @@ pub fn disable() {
pub unsafe fn enable() {
match () {
#[cfg(target_arch = "arm")]
- () => unsafe {
+ () => {
asm!("cpsie i"
:
: