aboutsummaryrefslogtreecommitdiff
path: root/src/interrupt.rs
diff options
context:
space:
mode:
authorGravatar Adam Greig <adam@adamgreig.com> 2019-07-29 13:52:29 -0600
committerGravatar Adam Greig <adam@adamgreig.com> 2019-07-29 13:52:29 -0600
commitac7eaef31a01258a90aa786bbce4d47b17e207c6 (patch)
tree2849d31f22193c432ee255527633a1c5fa072fca /src/interrupt.rs
parent6a213910f7f8920906c2f8882cbc1f1a3ebc3627 (diff)
downloadcortex-m-ac7eaef31a01258a90aa786bbce4d47b17e207c6.tar.gz
cortex-m-ac7eaef31a01258a90aa786bbce4d47b17e207c6.tar.zst
cortex-m-ac7eaef31a01258a90aa786bbce4d47b17e207c6.zip
Update for 2018 edition
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 b57cc80..58f552a 100644
--- a/src/interrupt.rs
+++ b/src/interrupt.rs
@@ -61,7 +61,7 @@ pub fn free<F, R>(f: F) -> R
where
F: FnOnce(&CriticalSection) -> R,
{
- let primask = ::register::primask::read();
+ let primask = crate::register::primask::read();
// disable interrupts
disable();