Fix Tests to use String API
This commit is contained in:
parent
7d98970eba
commit
4162e4c373
|
@ -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()
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue