From eb04dafce313ff5349b1c93d8d87cb53ba320e7e Mon Sep 17 00:00:00 2001 From: Robin Krahl Date: Tue, 14 Jan 2020 16:18:02 +0100 Subject: Derive Clone, Copy, Debug, PartialEq for Status Somehow I forgot to derive the common traits for the new Status struct. This patch adds the missing derive attribute for Clone, Copy, Debug and PartialEq. --- src/device/mod.rs | 1 + 1 file changed, 1 insertion(+) (limited to 'src') diff --git a/src/device/mod.rs b/src/device/mod.rs index ef9f018..8b7f1c6 100644 --- a/src/device/mod.rs +++ b/src/device/mod.rs @@ -154,6 +154,7 @@ impl fmt::Display for FirmwareVersion { } /// The status information common to all Nitrokey devices. +#[derive(Clone, Copy, Debug, PartialEq)] pub struct Status { /// The firmware version of the device. pub firmware_version: FirmwareVersion, -- cgit v1.2.1