From ac7eaef31a01258a90aa786bbce4d47b17e207c6 Mon Sep 17 00:00:00 2001 From: Adam Greig Date: Mon, 29 Jul 2019 13:52:29 -0600 Subject: Update for 2018 edition --- src/peripheral/mod.rs | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'src/peripheral/mod.rs') 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; -- cgit v1.2.3