summaryrefslogtreecommitdiffstats
path: root/openpgp/src/fingerprint.rs
diff options
context:
space:
mode:
Diffstat (limited to 'openpgp/src/fingerprint.rs')
-rw-r--r--openpgp/src/fingerprint.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/openpgp/src/fingerprint.rs b/openpgp/src/fingerprint.rs
index b7fbc3af..d60f3faa 100644
--- a/openpgp/src/fingerprint.rs
+++ b/openpgp/src/fingerprint.rs
@@ -141,8 +141,8 @@ impl Fingerprint {
/// ```
pub fn as_bytes(&self) -> &[u8] {
match self {
- &Fingerprint::V4(ref fp) => fp,
- &Fingerprint::Invalid(ref fp) => fp,
+ Fingerprint::V4(ref fp) => fp,
+ Fingerprint::Invalid(ref fp) => fp,
}
}
@@ -233,8 +233,8 @@ impl Fingerprint {
/// Common code for the above functions.
fn convert_to_string(&self, pretty: bool) -> String {
let raw = match self {
- &Fingerprint::V4(ref fp) => &fp[..],
- &Fingerprint::Invalid(ref fp) => &fp[..],
+ Fingerprint::V4(ref fp) => &fp[..],
+ Fingerprint::Invalid(ref fp) => &fp[..],
};
// We currently only handle V4 fingerprints, which look like: