From 4345c105963cee061acf26bec207fab2859fb164 Mon Sep 17 00:00:00 2001 From: Jorge Aparicio Date: Sun, 16 Dec 2018 18:37:36 +0100 Subject: properly handle #[cfg] (conditional compilation) on resources --- src/export.rs | 1 - 1 file changed, 1 deletion(-) (limited to 'src') diff --git a/src/export.rs b/src/export.rs index c1eeb87..ed40b62 100644 --- a/src/export.rs +++ b/src/export.rs @@ -10,7 +10,6 @@ pub use cortex_m::{ asm::wfi, interrupt, peripheral::scb::SystemHandler, peripheral::syst::SystClkSource, peripheral::Peripherals, }; -pub use cortex_m_rt::{entry, exception}; pub use heapless::consts; use heapless::spsc::{Queue, SingleCore}; -- cgit v1.2.3 From d35f5bc0b0453c2e98b8398d36bd2ba553edce45 Mon Sep 17 00:00:00 2001 From: Jorge Aparicio Date: Sun, 16 Dec 2018 19:16:19 +0100 Subject: use edition idioms in the top crate --- src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/lib.rs b/src/lib.rs index 943413f..213037b 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -295,7 +295,7 @@ impl<'a, T> fmt::Debug for Exclusive<'a, T> where T: fmt::Debug, { - fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { + fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { (**self).fmt(f) } } @@ -304,7 +304,7 @@ impl<'a, T> fmt::Display for Exclusive<'a, T> where T: fmt::Display, { - fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { + fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { (**self).fmt(f) } } -- cgit v1.2.3