Add copy to Level enum in embassy-rp gpio module

This commit is contained in:
Slushee 2023-02-13 17:29:35 +00:00 committed by GitHub
parent 1626a4a74b
commit dfc58ad3a2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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,