File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change 2323 }
2424
2525 /// Fetch a reference to the inner `v2::OutputPin` impl
26- pub fn inner ( & self ) -> & T {
26+ #[ cfg( test) ]
27+ fn inner ( & self ) -> & T {
2728 & self . pin
2829 }
2930}
9192 Self { pin}
9293 }
9394
94- /// Fetch a reference to the inner `v2::InputPin` impl
95- pub fn inner ( & self ) -> & T {
96- & self . pin
97- }
9895}
9996
10097#[ cfg( feature = "unproven" ) ]
@@ -135,7 +132,7 @@ mod tests {
135132 use crate :: digital:: v1;
136133 use crate :: digital:: v2;
137134
138- use crate :: digital:: v1:: { InputPin , OutputPin } ;
135+ use crate :: digital:: v1:: OutputPin ;
139136
140137 #[ derive( Clone ) ]
141138 struct NewOutputPinImpl {
@@ -195,6 +192,9 @@ mod tests {
195192 o. set_high ( ) ;
196193 }
197194
195+ #[ cfg( feature = "unproven" ) ]
196+ use crate :: digital:: v1:: InputPin ;
197+
198198 #[ cfg( feature = "unproven" ) ]
199199 struct NewInputPinImpl {
200200 state : Result < bool , ( ) > ,
You can’t perform that action at this time.
0 commit comments