aboutsummaryrefslogtreecommitdiff
path: root/src/peripheral/mod.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/peripheral/mod.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/peripheral/mod.rs')
-rw-r--r--src/peripheral/mod.rs10
1 files changed, 1 insertions, 9 deletions
diff --git a/src/peripheral/mod.rs b/src/peripheral/mod.rs
index 8d2bd3f..7019224 100644
--- a/src/peripheral/mod.rs
+++ b/src/peripheral/mod.rs
@@ -8,8 +8,6 @@
//! the [`Peripherals::take`](struct.Peripherals.html#method.take) method.
//!
//! ``` no_run
-//! extern crate cortex_m;
-//!
//! use cortex_m::peripheral::Peripherals;
//!
//! fn main() {
@@ -22,8 +20,6 @@
//! `Option`. Subsequent calls to the method will result in a `None` value being returned.
//!
//! ``` no_run
-//! extern crate cortex_m;
-//!
//! use cortex_m::peripheral::Peripherals;
//!
//! fn main() {
@@ -36,8 +32,6 @@
//! [`DWT::get_cycle_count`](struct.DWT.html#method.get_cycle_count) method.
//!
//! ``` no_run
-//! extern crate cortex_m;
-//!
//! use cortex_m::peripheral::{DWT, Peripherals};
//!
//! fn main() {
@@ -56,8 +50,6 @@
//! safe higher level abstractions.
//!
//! ``` no_run
-//! extern crate cortex_m;
-//!
//! use cortex_m::peripheral::{DWT, Peripherals};
//!
//! fn main() {
@@ -81,7 +73,7 @@
use core::marker::PhantomData;
use core::ops;
-use interrupt;
+use crate::interrupt;
#[cfg(not(armv6m))]
pub mod cbp;