File tree 1 file changed +6
-6
lines changed 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change 23
23
}
24
24
25
25
/// Fetch a reference to the inner `v2::OutputPin` impl
26
- pub fn inner ( & self ) -> & T {
26
+ #[ cfg( test) ]
27
+ fn inner ( & self ) -> & T {
27
28
& self . pin
28
29
}
29
30
}
91
92
Self { pin}
92
93
}
93
94
94
- /// Fetch a reference to the inner `v2::InputPin` impl
95
- pub fn inner ( & self ) -> & T {
96
- & self . pin
97
- }
98
95
}
99
96
100
97
#[ cfg( feature = "unproven" ) ]
@@ -135,7 +132,7 @@ mod tests {
135
132
use crate :: digital:: v1;
136
133
use crate :: digital:: v2;
137
134
138
- use crate :: digital:: v1:: { InputPin , OutputPin } ;
135
+ use crate :: digital:: v1:: OutputPin ;
139
136
140
137
#[ derive( Clone ) ]
141
138
struct NewOutputPinImpl {
@@ -195,6 +192,9 @@ mod tests {
195
192
o. set_high ( ) ;
196
193
}
197
194
195
+ #[ cfg( feature = "unproven" ) ]
196
+ use crate :: digital:: v1:: InputPin ;
197
+
198
198
#[ cfg( feature = "unproven" ) ]
199
199
struct NewInputPinImpl {
200
200
state : Result < bool , ( ) > ,
You can’t perform that action at this time.
0 commit comments