Skip to content

Commit c74f8d1

Browse files
committed
made panic notes more consistent
1 parent 7cbdc3f commit c74f8d1

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/digital/v1_compat.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
//! v1 compatibility wrapper
22
//! 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
45
56
#[allow(deprecated)]
67
use super::v1;
@@ -38,6 +39,7 @@ where
3839
}
3940

4041
/// Implementation of `v1::OutputPin` trait for fallible `v2::OutputPin` output pins
42+
/// where errors will panic.
4143
#[allow(deprecated)]
4244
impl <T, E> v1::OutputPin for OldOutputPin<T>
4345
where
@@ -72,6 +74,7 @@ where
7274
}
7375

7476
/// Wrapper to allow fallible `v2::InputPin` traits to be converted to `v1::InputPin` traits
77+
/// where errors will panic.
7578
#[cfg(feature = "unproven")]
7679
pub struct OldInputPin<T> {
7780
pin: T,

0 commit comments

Comments
 (0)