summaryrefslogtreecommitdiffstats
path: root/tool
diff options
context:
space:
mode:
authorJustus Winter <justus@sequoia-pgp.org>2020-02-21 11:52:13 +0100
committerJustus Winter <justus@sequoia-pgp.org>2020-02-21 11:52:13 +0100
commita5ca70a2bc89ce7b5c20b1be3c66a04e905b3d47 (patch)
treecb293c3cde2af3a6fc03a0cadbcbb0987d5148f6 /tool
parented16289b63cfdede68b5c4b864bd7b5ec37ba42b (diff)
openpgp: Mark enum SecretKeyMaterial as non-exhaustive.
Diffstat (limited to 'tool')
-rw-r--r--tool/src/commands/dump.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/tool/src/commands/dump.rs b/tool/src/commands/dump.rs
index 5128aeda..d05263bf 100644
--- a/tool/src/commands/dump.rs
+++ b/tool/src/commands/dump.rs
@@ -403,6 +403,8 @@ impl PacketDumper {
pd.dump_mpis(output, &ii, &[rest],
&["rest"])?;
},
+ mpis::SecretKeyMaterial::__Nonexhaustive =>
+ unreachable!(),
} Ok(()) })?,
SecretKeyMaterial::Encrypted(ref e) => {
writeln!(output, "{}", i)?;