aboutsummaryrefslogtreecommitdiff
path: root/src/macros.rs
diff options
context:
space:
mode:
authorGravatar bors[bot] <26634292+bors[bot]@users.noreply.github.com> 2019-07-29 20:22:11 +0000
committerGravatar bors[bot] <26634292+bors[bot]@users.noreply.github.com> 2019-07-29 20:22:11 +0000
commit1aa7d5dba9f3a50d1568bcfddc4073ac08d4ee1e (patch)
tree09e8c83bc0e843c20e5f1589f702e945d335d4a8 /src/macros.rs
parent6a213910f7f8920906c2f8882cbc1f1a3ebc3627 (diff)
parent9987c6f9e77d50feb6b77be4c9eae84a988e1fdf (diff)
downloadcortex-m-1aa7d5dba9f3a50d1568bcfddc4073ac08d4ee1e.tar.gz
cortex-m-1aa7d5dba9f3a50d1568bcfddc4073ac08d4ee1e.tar.zst
cortex-m-1aa7d5dba9f3a50d1568bcfddc4073ac08d4ee1e.zip
Merge #160
160: Update for 2018 edition r=korken89 a=adamgreig Co-authored-by: Adam Greig <adam@adamgreig.com>
Diffstat (limited to 'src/macros.rs')
-rw-r--r--src/macros.rs9
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() {}
///