From 2c8080b0aed4d998dfe2b158c63121b515213a54 Mon Sep 17 00:00:00 2001 From: Matthias Devlamynck Date: Thu, 29 Dec 2022 17:26:49 +0100 Subject: [PATCH] Add Clone & Copy on embassy_nrf::gpio::Level --- embassy-nrf/src/gpio.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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> { } /// 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.