From dfc58ad3a27d9313bebbd0ee49976afb54df772e Mon Sep 17 00:00:00 2001 From: Slushee <55996847+Slushee-a@users.noreply.github.com> Date: Mon, 13 Feb 2023 17:29:35 +0000 Subject: [PATCH] Add copy to Level enum in embassy-rp gpio module --- embassy-rp/src/gpio.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/embassy-rp/src/gpio.rs b/embassy-rp/src/gpio.rs index e258733a..76d4281f 100644 --- a/embassy-rp/src/gpio.rs +++ b/embassy-rp/src/gpio.rs @@ -16,7 +16,7 @@ const NEW_AW: AtomicWaker = AtomicWaker::new(); static INTERRUPT_WAKERS: [AtomicWaker; PIN_COUNT] = [NEW_AW; PIN_COUNT]; /// Represents a digital input or output level. -#[derive(Debug, Eq, PartialEq, Clone)] +#[derive(Debug, Eq, PartialEq, Clone, Copy)] pub enum Level { Low, High,