Fix Tests to use String API

This commit is contained in:
Leon Tan 2019-02-22 23:39:19 +01:00
parent 7d98970eba
commit 4162e4c373
1 changed files with 2 additions and 2 deletions

View File

@ -514,8 +514,8 @@ pub fn test_steal_uid<D: Database>(db: &mut D) {
);
}
pub fn get_userids(bytes: &[u8]) -> Vec<UserID> {
let tpk = TPK::from_bytes(bytes).unwrap();
pub fn get_userids(armored: &str) -> Vec<UserID> {
let tpk = TPK::from_bytes(armored.as_bytes()).unwrap();
tpk.userids().map(|binding| binding.userid().clone()).collect()
}