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/macros.rs | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'src/macros.rs') 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() {} /// -- cgit v1.2.3