Skip to content

Commit bf5ecee

Browse files
committed
removed .inner from external interface, fixed test without unproven
1 parent c74f8d1 commit bf5ecee

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/digital/v1_compat.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@ where
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
}
@@ -91,10 +92,6 @@ where
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, ()>,

0 commit comments

Comments
 (0)