From 5ed4bb3051a5ccfd0b15ad1ab53cf3cc7eee91a5 Mon Sep 17 00:00:00 2001 From: Henk Oordt Date: Mon, 3 Oct 2022 20:01:02 +0200 Subject: [PATCH] Derive Copy and Eq for SourceVoltage --- src/types.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/types.rs b/src/types.rs index 4d14765..9cbf9cb 100644 --- a/src/types.rs +++ b/src/types.rs @@ -21,7 +21,7 @@ impl Display for ParseTypeError { } } -#[derive(Default, Debug)] +#[derive(Debug, Default, Clone, Copy, PartialEq, Eq)] /// Device source voltage. pub struct SourceVoltage { raw: [u8; 2],