Skip to content

Commit f2a5638

Browse files
bors[bot]no111u3
andauthored
Merge #168
168: Fix failed run test without unproven feature r=thejpster a=no111u3 Solve for issue #165. Fix errors on build without `features` option. Mask tests with `nb` because it needs to rewrite. Co-authored-by: Boris Vinogradov <[email protected]>
2 parents c606612 + 6b37560 commit f2a5638

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

src/digital/v2_compat.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,7 @@ mod tests {
114114
}
115115
}
116116

117+
#[cfg(feature = "unproven")]
117118
#[allow(deprecated)]
118119
impl v1::StatefulOutputPin for OldOutputPinImpl {
119120
fn is_set_low(&self) -> bool {
@@ -125,6 +126,7 @@ mod tests {
125126
}
126127
}
127128

129+
#[cfg(feature = "unproven")]
128130
#[allow(deprecated)]
129131
impl v1::toggleable::Default for OldOutputPinImpl {}
130132

@@ -139,10 +141,12 @@ mod tests {
139141
}
140142
}
141143

144+
#[cfg(feature = "unproven")]
142145
struct NewToggleablePinConsumer<T: v2::ToggleableOutputPin> {
143146
_pin: T,
144147
}
145148

149+
#[cfg(feature = "unproven")]
146150
impl<T> NewToggleablePinConsumer<T>
147151
where
148152
T: v2::ToggleableOutputPin,
@@ -152,6 +156,7 @@ mod tests {
152156
}
153157
}
154158

159+
#[cfg(feature = "unproven")]
155160
#[test]
156161
fn v2_v1_toggleable_implicit() {
157162
let i = OldOutputPinImpl { state: false };

src/lib.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@
238238
//! An example of running two tasks concurrently. First task: blink an LED every
239239
//! second. Second task: loop back data over the serial interface.
240240
//!
241-
//! ```
241+
//! ```not_run
242242
//! extern crate embedded_hal as hal;
243243
//! extern crate futures;
244244
//!
@@ -379,7 +379,7 @@
379379
//!
380380
//! Same example as above but using `await!` instead of `futures`.
381381
//!
382-
//! ```
382+
//! ```not_run
383383
//! #![feature(generator_trait)]
384384
//! #![feature(generators)]
385385
//!
@@ -551,7 +551,7 @@
551551
//!
552552
//! - Asynchronous SPI transfer
553553
//!
554-
//! ```
554+
//! ```not_run
555555
//! #![feature(conservative_impl_trait)]
556556
//! #![feature(generators)]
557557
//! #![feature(generator_trait)]

0 commit comments

Comments
 (0)