summaryrefslogtreecommitdiffstats
path: root/openpgp-ffi/src
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-ffi/src
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-ffi/src')
-rw-r--r--openpgp-ffi/src/fingerprint.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/openpgp-ffi/src/fingerprint.rs b/openpgp-ffi/src/fingerprint.rs
index 8ba41f48..ba60bd44 100644
--- a/openpgp-ffi/src/fingerprint.rs
+++ b/openpgp-ffi/src/fingerprint.rs
@@ -83,9 +83,9 @@ fn pgp_fingerprint_as_bytes(fp: *const Fingerprint,
-> *const u8 {
let fp = fp.ref_raw();
if let Some(p) = fp_len {
- *p = fp.as_slice().len();
+ *p = fp.as_bytes().len();
}
- fp.as_slice().as_ptr()
+ fp.as_bytes().as_ptr()
}
/// Converts the fingerprint to a hexadecimal number.