diff options
author | Robin Krahl <robin.krahl@ireas.org> | 2018-12-30 00:04:49 +0100 |
---|---|---|
committer | Robin Krahl <robin.krahl@ireas.org> | 2018-12-30 00:04:49 +0100 |
commit | 1c6b4d4dfd498c4127a076c48b6c37e05eaacb62 (patch) | |
tree | acd8c4935c1894a4e26ffd2d6c23a435c07931ec /CHANGELOG.md | |
parent | 62d698db4941c06905cb08bdbe4cc35ad54132d5 (diff) | |
download | nitrokey-rs-1c6b4d4dfd498c4127a076c48b6c37e05eaacb62.tar.gz nitrokey-rs-1c6b4d4dfd498c4127a076c48b6c37e05eaacb62.tar.bz2 |
Derive Clone and Copy for CommandError, LogLevel, OtpMode
As these three enums are scalar values, this patch derives the Clone and
Copy traits for them. This should avoid unnecessary allocations and
reduce the memory footprint.
Diffstat (limited to 'CHANGELOG.md')
-rw-r--r-- | CHANGELOG.md | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md index a30e531..11092ec 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,8 @@ - Remove the `test-no-device` feature. - Update the rand dependency to version 0.6. - Add function `Device::get_model` that returns the connected model. +- Derive the `Copy` and `Clone` traits for the enums `CommandError`, `LogLevel` + and `OtpMode` # v0.2.1 (2018-12-10) |