diff options
author | 2019-07-29 13:52:29 -0600 | |
---|---|---|
committer | 2019-07-29 13:52:29 -0600 | |
commit | ac7eaef31a01258a90aa786bbce4d47b17e207c6 (patch) | |
tree | 2849d31f22193c432ee255527633a1c5fa072fca /src/macros.rs | |
parent | 6a213910f7f8920906c2f8882cbc1f1a3ebc3627 (diff) | |
download | cortex-m-ac7eaef31a01258a90aa786bbce4d47b17e207c6.tar.gz cortex-m-ac7eaef31a01258a90aa786bbce4d47b17e207c6.tar.zst cortex-m-ac7eaef31a01258a90aa786bbce4d47b17e207c6.zip |
Update for 2018 edition
Diffstat (limited to 'src/macros.rs')
-rw-r--r-- | src/macros.rs | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/macros.rs b/src/macros.rs index 813552f..6b3b269 100644 --- a/src/macros.rs +++ b/src/macros.rs @@ -33,8 +33,7 @@ macro_rules! iprintln { /// # Example /// /// ``` no_run -/// #[macro_use(singleton)] -/// extern crate cortex_m; +/// use cortex_m::singleton; /// /// fn main() { /// // OK if `main` is executed only once @@ -77,8 +76,7 @@ macro_rules! singleton { } /// ``` compile_fail -/// #[macro_use(singleton)] -/// extern crate cortex_m; +/// use cortex_m::singleton; /// /// fn main() {} /// @@ -92,8 +90,7 @@ const CFAIL: () = (); /// ``` /// #![deny(unsafe_code)] -/// #[macro_use(singleton)] -/// extern crate cortex_m; +/// use cortex_m::singleton; /// /// fn main() {} /// |