summaryrefslogtreecommitdiffstats
path: root/openpgp-ffi/src
diff options
context:
space:
mode:
authorNeal H. Walfield <neal@pep.foundation>2019-01-29 10:03:53 +0100
committerNeal H. Walfield <neal@pep.foundation>2019-01-29 10:11:10 +0100
commitee276a2dc55fd55f22494e9e70187f060fb2f151 (patch)
tree929535f9ce9bc062e6074126e36ed15ef3f746a4 /openpgp-ffi/src
parent14c40b714a9b08d846b2b48ece0788bd47797cb9 (diff)
openpgp: Change TPKBuilder::add_userid to take an Into<Cow>>.
- Change TPKBuilder::add_userid to take an Into<Cow<'a, str>>> instead of a &str.
Diffstat (limited to 'openpgp-ffi/src')
-rw-r--r--openpgp-ffi/src/tpk.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/openpgp-ffi/src/tpk.rs b/openpgp-ffi/src/tpk.rs
index a3df23b7..b4026604 100644
--- a/openpgp-ffi/src/tpk.rs
+++ b/openpgp-ffi/src/tpk.rs
@@ -613,8 +613,8 @@ pub extern "system" fn pgp_tpk_builder_add_userid
{
let tpkb = ffi_param_ref_mut!(tpkb);
let tpkb_ = ffi_param_move!(*tpkb);
- let uid = ffi_param_cstr!(uid).to_string_lossy().to_string();
- let tpkb_ = tpkb_.add_userid(uid.as_ref());
+ let uid = ffi_param_cstr!(uid).to_string_lossy();
+ let tpkb_ = tpkb_.add_userid(uid);
*tpkb = box_raw!(tpkb_);
}