Add Clone & Copy on embassy_nrf::gpio::Level

This commit is contained in:
Matthias Devlamynck 2022-12-29 17:26:49 +01:00
parent 7add0eafb8
commit 2c8080b0ae

View File

@ -70,7 +70,7 @@ impl<'d, T: Pin> Input<'d, T> {
}
/// Digital input or output level.
#[derive(Debug, Eq, PartialEq)]
#[derive(Clone, Copy, Debug, Eq, PartialEq)]
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
pub enum Level {
/// Logical low.