@@ -108,12 +108,10 @@ where
108108
109109/// Wrapper to allow fallible `v2::InputPin` traits to be converted to `v1::InputPin` traits
110110/// where errors will panic.
111- #[ cfg( feature = "unproven" ) ]
112111pub struct OldInputPin < T > {
113112 pin : T ,
114113}
115114
116- #[ cfg( feature = "unproven" ) ]
117115impl < T , E > OldInputPin < T >
118116where
119117 T : v2:: OutputPin < Error =E > ,
@@ -126,7 +124,6 @@ where
126124
127125}
128126
129- #[ cfg( feature = "unproven" ) ]
130127impl < T , E > From < T > for OldInputPin < T >
131128where
132129 T : v2:: InputPin < Error =E > ,
@@ -139,7 +136,6 @@ where
139136
140137/// Implementation of `v1::InputPin` trait for `v2::InputPin` fallible pins
141138/// where errors will panic.
142- #[ cfg( feature = "unproven" ) ]
143139#[ allow( deprecated) ]
144140impl < T , E > v1:: InputPin for OldInputPin < T >
145141where
@@ -224,15 +220,12 @@ mod tests {
224220 o. set_high ( ) ;
225221 }
226222
227- #[ cfg( feature = "unproven" ) ]
228223 use crate :: digital:: v1:: InputPin ;
229224
230- #[ cfg( feature = "unproven" ) ]
231225 struct NewInputPinImpl {
232226 state : Result < bool , ( ) > ,
233227 }
234228
235- #[ cfg( feature = "unproven" ) ]
236229 impl v2:: InputPin for NewInputPinImpl {
237230 type Error = ( ) ;
238231
@@ -244,13 +237,11 @@ mod tests {
244237 }
245238 }
246239
247- #[ cfg( feature = "unproven" ) ]
248240 #[ allow( deprecated) ]
249241 struct OldInputPinConsumer < T : v1:: InputPin > {
250242 _pin : T ,
251243 }
252244
253- #[ cfg( feature = "unproven" ) ]
254245 #[ allow( deprecated) ]
255246 impl < T > OldInputPinConsumer < T >
256247 where T : v1:: InputPin
@@ -260,14 +251,12 @@ mod tests {
260251 }
261252 }
262253
263- #[ cfg( feature = "unproven" ) ]
264254 #[ test]
265255 fn v1_v2_input_explicit ( ) {
266256 let i = NewInputPinImpl { state : Ok ( false ) } ;
267257 let _c: OldInputPinConsumer < OldInputPin < _ > > = OldInputPinConsumer :: new ( i. into ( ) ) ;
268258 }
269259
270- #[ cfg( feature = "unproven" ) ]
271260 #[ test]
272261 fn v1_v2_input_state ( ) {
273262 let i: OldInputPin < _ > = NewInputPinImpl { state : Ok ( false ) } . into ( ) ;
@@ -276,7 +265,6 @@ mod tests {
276265 assert_eq ! ( i. is_high( ) , false ) ;
277266 }
278267
279- #[ cfg( feature = "unproven" ) ]
280268 #[ test]
281269 #[ should_panic]
282270 fn v1_v2_input_panic ( ) {
0 commit comments