Skip to content

Commit

Permalink
chore: typos and vocab fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
coriolinus committed Dec 20, 2024
1 parent a61739b commit c84da0b
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion crypto/src/mls/client/key_package.rs
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ impl Client {
.key_store()
.find_all(EntityFindParams::default())
.await
.map_err(KeystoreError::wrap("finding all key stores"))?;
.map_err(KeystoreError::wrap("finding all key packages"))?;

let mut valid_count = 0;
for kp in kps
Expand Down
2 changes: 1 addition & 1 deletion crypto/src/mls/conversation/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ pub enum Error {
#[error("Tried to decrypt a commit created by self which is likely to have been replayed by the DS")]
SelfCommitIgnored,
#[error("This proposal variant cannot be renewed")]
PropopsalVariantCannotBeRenewed,
ProposalVariantCannotBeRenewed,
#[error("caller error: {0}")]
CallerError(&'static str),
/// This happens when the DS cannot flag KeyPackages as claimed or not. It this scenario, a client
Expand Down
2 changes: 1 addition & 1 deletion crypto/src/mls/conversation/renew.rs
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ impl MlsConversation {
Proposal::Add(add) => self.propose_add_member(client, backend, add.key_package.into()).await?,
Proposal::Remove(remove) => self.propose_remove_member(client, backend, remove.removed()).await?,
Proposal::Update(update) => self.renew_update(client, backend, Some(update.leaf_node())).await?,
_ => return Err(Error::PropopsalVariantCannotBeRenewed),
_ => return Err(Error::ProposalVariantCannotBeRenewed),
};
bundle.push(msg);
}
Expand Down
2 changes: 1 addition & 1 deletion crypto/src/mls/credential/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ mod tests {
// macro produces `None`, so Rust thinks that it's a different error internally.
// But changing the debug/display implementations on `Error::InvalidIdentity`
// also changes the implementations on the inner type; I'm reasonably confident
// that it is in fact this enum and variaint.
// that it is in fact this enum and variant.
//
// So let's abuse the debug implementation, on the assumption
// that nobody is going to make a different unrelated error
Expand Down

0 comments on commit c84da0b

Please sign in to comment.