aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin Krahl <robin.krahl@ireas.org>2020-01-14 16:18:02 +0100
committerRobin Krahl <robin.krahl@ireas.org>2020-01-14 16:53:35 +0100
commiteb04dafce313ff5349b1c93d8d87cb53ba320e7e (patch)
tree82601475b8620f6159ecd80e92e50c182f7876c8
parent45b2bc5c77a2f5c22ee6a75c1c1d2b4f9b458943 (diff)
downloadnitrokey-rs-eb04dafce313ff5349b1c93d8d87cb53ba320e7e.tar.gz
nitrokey-rs-eb04dafce313ff5349b1c93d8d87cb53ba320e7e.tar.bz2
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.
-rw-r--r--src/device/mod.rs1
1 files changed, 1 insertions, 0 deletions
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,