diff options
-rw-r--r-- | openpgp/src/keyid.rs | 4 | ||||
-rw-r--r-- | openpgp/src/serialize.rs | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/openpgp/src/keyid.rs b/openpgp/src/keyid.rs index 9762f44f..53011235 100644 --- a/openpgp/src/keyid.rs +++ b/openpgp/src/keyid.rs @@ -373,9 +373,9 @@ impl KeyID { /// Common code for the above functions. fn convert_to_string(&self, pretty: bool) -> String { let raw = match self { - KeyID::V4(ref fp) => &fp[..], + KeyID::V4(ref id) => &id[..], #[allow(deprecated)] - KeyID::Invalid(ref fp) => &fp[..], + KeyID::Invalid(ref id) => &id[..], KeyID::Unknown{ id, .. } => &id[..], }; diff --git a/openpgp/src/serialize.rs b/openpgp/src/serialize.rs index 3783a954..a44aec8a 100644 --- a/openpgp/src/serialize.rs +++ b/openpgp/src/serialize.rs @@ -835,9 +835,9 @@ impl seal::Sealed for KeyID {} impl Marshal for KeyID { fn serialize(&self, o: &mut dyn std::io::Write) -> Result<()> { let raw = match self { - KeyID::V4(ref fp) => &fp[..], + KeyID::V4(ref id) => &id[..], #[allow(deprecated)] - KeyID::Invalid(ref fp) => &fp[..], + KeyID::Invalid(ref id) => &id[..], KeyID::Unknown { id, .. } => &id[..], }; o.write_all(raw)?; @@ -851,7 +851,7 @@ impl MarshalInto for KeyID { match self { KeyID::V4(_) => 8, #[allow(deprecated)] - KeyID::Invalid(ref fp) => fp.len(), + KeyID::Invalid(ref id) => id.len(), KeyID::Unknown { id, .. } => id.len(), } } |