summaryrefslogtreecommitdiffstats
path: root/openpgp/src/serialize
diff options
context:
space:
mode:
Diffstat (limited to 'openpgp/src/serialize')
-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) =>