From dfb77ce88553c3d81eeac3677b2e1d657833bb55 Mon Sep 17 00:00:00 2001 From: Nora Widdecke Date: Mon, 6 Apr 2020 17:26:23 +0200 Subject: 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. --- openpgp-ffi/src/fingerprint.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'openpgp-ffi/src') 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. -- cgit v1.2.3