Adapt ds-lib tests to removed unwraps
@@ -19,7 +19,10 @@ fn test_client_info() {
let client_key_package_bundle =
KeyPackageBundle::new(&[ciphersuite], &credential_bundle, crypto, vec![]).unwrap();
let client_key_package = vec![(
- client_key_package_bundle.key_package().hash(crypto),
+ client_key_package_bundle
+ .key_package()
+ .hash(crypto)
+ .expect("Could not hash KeyPackage."),
client_key_package_bundle.key_package().clone(),
)];
let client_data = ClientInfo::new(client_name.to_string(), client_key_package);
