aboutsummaryrefslogtreecommitdiff
path: root/CHANGELOG.md
diff options
context:
space:
mode:
authorRobin Krahl <robin.krahl@ireas.org>2020-09-06 12:57:16 +0200
committerRobin Krahl <robin.krahl@ireas.org>2020-09-06 12:57:16 +0200
commit6039e0c76997014ed3f78768f8558da98d373e4b (patch)
tree165b2e3a55058a4a169095d44b9f578b1396dc8c /CHANGELOG.md
parent3046af524b9634e5dd0b8f5a4a98ac8b36dcfb36 (diff)
downloadnitrokey-rs-6039e0c76997014ed3f78768f8558da98d373e4b.tar.gz
nitrokey-rs-6039e0c76997014ed3f78768f8558da98d373e4b.tar.bz2
Make *Error, Model, DeviceWrapper non-exhaustive
Previously, all enums defined by the nitrokey crate were exhaustive. This means that adding new variants to these enums is a breaking change. To make it possible to add new features to nitrokey-rs without breaking compatibility, this patch marks the Error, CommandError, CommunicationError, LibraryError, Model and DeviceWrapper enums as non-exhaustive.
Diffstat (limited to 'CHANGELOG.md')
-rw-r--r--CHANGELOG.md2
1 files changed, 2 insertions, 0 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
index cd43612..80efb57 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -5,6 +5,8 @@ SPDX-License-Identifier: CC0-1.0
# Unreleased
- Export the `FirmwareVersion` struct.
+- Mark the `Error`, `CommandError`, `CommunicationError`, `LibraryError`,
+ `Model` and `DeviceWrapper` enums as non-exhaustive.
# v0.7.1 (2020-08-30)
- Remove the custom `std::error::Error::source` implementation for