summaryrefslogtreecommitdiffstats
path: root/openpgp/src/fingerprint.rs
diff options
context:
space:
mode:
authorNora Widdecke <nora@sequoia-pgp.org>2020-04-06 17:26:23 +0200
committerNora Widdecke <nora@sequoia-pgp.org>2020-04-06 18:35:13 +0200
commitdfb77ce88553c3d81eeac3677b2e1d657833bb55 (patch)
tree74c23c39ad03be35744bb17b9bb1559da37aa36f /openpgp/src/fingerprint.rs
parent74e99d43769396d32820fa9c233ed7c541b13820 (diff)
openpgp: Rename as_slice to as_bytes.
- KeyID::as_slice and KeyID::from_bytes mirror each other. This should be reflected in the functions' names. Also, as_bytes is more descriptive. - Same for Fingerprint::as_slice and Fingerprint::as_bytes. - KeyHandle::as_slice renamed for consistency.
Diffstat (limited to 'openpgp/src/fingerprint.rs')
-rw-r--r--openpgp/src/fingerprint.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/openpgp/src/fingerprint.rs b/openpgp/src/fingerprint.rs
index c83085bd..2e6889e2 100644
--- a/openpgp/src/fingerprint.rs
+++ b/openpgp/src/fingerprint.rs
@@ -67,7 +67,7 @@ impl Fingerprint {
}
/// Returns a reference to the raw Fingerprint.
- pub fn as_slice(&self) -> &[u8] {
+ pub fn as_bytes(&self) -> &[u8] {
match self {
&Fingerprint::V4(ref fp) => fp,
&Fingerprint::Invalid(ref fp) => fp,