summaryrefslogtreecommitdiffstats
path: root/openpgp/src/serialize/mod.rs
diff options
context:
space:
mode:
authorJustus Winter <justus@sequoia-pgp.org>2018-07-09 15:24:56 +0200
committerJustus Winter <justus@sequoia-pgp.org>2018-07-09 15:24:56 +0200
commitaef143f89e74f6b44f16561da2b6093f4166730b (patch)
treecfb2d446b355da5e843c8fd1f7cd4ca6b6fa09b4 /openpgp/src/serialize/mod.rs
parent627620533867cc136ebf4dfe4de8d087ffec803a (diff)
openpgp: Add and use a type specifying reasons for revocations.
Diffstat (limited to 'openpgp/src/serialize/mod.rs')
-rw-r--r--openpgp/src/serialize/mod.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/openpgp/src/serialize/mod.rs b/openpgp/src/serialize/mod.rs
index 82c97347..039eacb1 100644
--- a/openpgp/src/serialize/mod.rs
+++ b/openpgp/src/serialize/mod.rs
@@ -464,7 +464,7 @@ impl<'a> Serialize for SubpacketValue<'a> {
SignersUserID(ref uid) =>
o.write_all(uid)?,
ReasonForRevocation { ref code, ref reason } => {
- o.write_all(&[*code])?;
+ o.write_all(&[(*code).into()])?;
o.write_all(reason)?;
},
Features(ref f) =>