File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change 1
1
//! v1 compatibility wrapper
2
2
//! this module adds reverse support for v2 digital traits
3
- //! v2 traits must be explicitly cast to the v1 version using `.into()`.
3
+ //! v2 traits must be explicitly cast to the v1 version using `.into()`,
4
+ //! and will panic on internal errors
4
5
5
6
#[ allow( deprecated) ]
6
7
use super :: v1;
38
39
}
39
40
40
41
/// Implementation of `v1::OutputPin` trait for fallible `v2::OutputPin` output pins
42
+ /// where errors will panic.
41
43
#[ allow( deprecated) ]
42
44
impl < T , E > v1:: OutputPin for OldOutputPin < T >
43
45
where
72
74
}
73
75
74
76
/// Wrapper to allow fallible `v2::InputPin` traits to be converted to `v1::InputPin` traits
77
+ /// where errors will panic.
75
78
#[ cfg( feature = "unproven" ) ]
76
79
pub struct OldInputPin < T > {
77
80
pin : T ,
You can’t perform that action at this time.
0 commit comments