From aef143f89e74f6b44f16561da2b6093f4166730b Mon Sep 17 00:00:00 2001 From: Justus Winter Date: Mon, 9 Jul 2018 15:24:56 +0200 Subject: openpgp: Add and use a type specifying reasons for revocations. --- openpgp/src/serialize/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'openpgp/src/serialize/mod.rs') 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) => -- cgit v1.2.3