From 6d454af22b9058765677e0190ebb8f57176a671a Mon Sep 17 00:00:00 2001 From: Diego Barrios Romero Date: Sat, 17 Nov 2018 14:47:31 +0100 Subject: Make types copyable --- src/channels.rs | 1 + src/devices/mod.rs | 1 + 2 files changed, 2 insertions(+) diff --git a/src/channels.rs b/src/channels.rs index 5b0d4d4..f88e10e 100644 --- a/src/channels.rs +++ b/src/channels.rs @@ -22,6 +22,7 @@ pub mod channel { pub struct DifferentialA2A3; } +#[derive(Debug, Clone, Copy)] pub enum ChannelSelection { SingleA0, SingleA1, diff --git a/src/devices/mod.rs b/src/devices/mod.rs index 95d8907..9db7b79 100644 --- a/src/devices/mod.rs +++ b/src/devices/mod.rs @@ -1,5 +1,6 @@ //! Functions for all devices +#[derive(Debug, Clone, Copy)] enum OperatingMode { OneShot, Continuous -- cgit v1.2.3-54-g00ecf