Skip to content

Commit

Permalink
One more case of Credential::new()
Browse files Browse the repository at this point in the history
  • Loading branch information
neekolas committed Mar 30, 2024
1 parent 0ae9060 commit de668c2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions xmtp_mls/src/groups/validated_commit.rs
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,7 @@ impl From<ValidatedCommit> for GroupMembershipChanges {
#[cfg(test)]
mod tests {
use openmls::{
credentials::{Credential, CredentialType, CredentialWithKey},
credentials::{BasicCredential, Credential, CredentialType, CredentialWithKey},

Check warning on line 366 in xmtp_mls/src/groups/validated_commit.rs

View workflow job for this annotation

GitHub Actions / Test

unused imports: `CredentialType`, `Credential`
group::config::CryptoConfig,
prelude_test::KeyPackage,
versions::ProtocolVersion,
Expand Down Expand Up @@ -510,7 +510,7 @@ mod tests {
&bola.identity.installation_keys,
CredentialWithKey {
// Broken credential
credential: Credential::new(CredentialType::Basic, vec![1, 2, 3]),
credential: BasicCredential::new(vec![1, 2, 3]).unwrap().into(),
signature_key: bola.identity.installation_keys.to_public_vec().into(),
},
)
Expand Down

0 comments on commit de668c2

Please sign in to comment.