diff options
| author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2022-12-29 16:31:36 +0000 |
|---|---|---|
| committer | GitHub <[email protected]> | 2022-12-29 16:31:36 +0000 |
| commit | 3478004b4d32c7c6edd38eed5239108b1d026317 (patch) | |
| tree | eb0e0f09bc005238b816ddd2d450d5011c43c551 | |
| parent | 7add0eafb870a8ecf80f5990d5a404504624c884 (diff) | |
| parent | 2c8080b0aed4d998dfe2b158c63121b515213a54 (diff) | |
Merge #1135
1135: Add Clone & Copy on embassy_nrf::gpio::Level r=Dirbaio a=mdevlamynck
This simply adds the Clone and Copy derive traits on embassy_nrf::gpio::Level.
Co-authored-by: Matthias Devlamynck <[email protected]>
| -rw-r--r-- | embassy-nrf/src/gpio.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/embassy-nrf/src/gpio.rs b/embassy-nrf/src/gpio.rs index bb64e41e9..b7230302a 100644 --- a/embassy-nrf/src/gpio.rs +++ b/embassy-nrf/src/gpio.rs | |||
| @@ -70,7 +70,7 @@ impl<'d, T: Pin> Input<'d, T> { | |||
| 70 | } | 70 | } |
| 71 | 71 | ||
| 72 | /// Digital input or output level. | 72 | /// Digital input or output level. |
| 73 | #[derive(Debug, Eq, PartialEq)] | 73 | #[derive(Clone, Copy, Debug, Eq, PartialEq)] |
| 74 | #[cfg_attr(feature = "defmt", derive(defmt::Format))] | 74 | #[cfg_attr(feature = "defmt", derive(defmt::Format))] |
| 75 | pub enum Level { | 75 | pub enum Level { |
| 76 | /// Logical low. | 76 | /// Logical low. |
