Skip to content

Commit

Permalink
Made clippy happy
Browse files Browse the repository at this point in the history
  • Loading branch information
rozbb committed Feb 16, 2024
1 parent 1b8dd29 commit dd3e525
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion kem/tests/hpke.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ impl Decapsulate<EncappedKey, SharedSecret> for PrivateKey {
type Error = HpkeError;

fn decapsulate(&self, encapped_key: &EncappedKey) -> Result<SharedSecret, HpkeError> {
<X25519HkdfSha256 as KemTrait>::decap(&self.0, None, &encapped_key)
<X25519HkdfSha256 as KemTrait>::decap(&self.0, None, encapped_key)
}
}

Expand Down
2 changes: 1 addition & 1 deletion kem/tests/x3dh.rs
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ impl Decapsulate<EphemeralKey, SharedSecret> for DecapContext {
let sender_pubkey = &self.1;

// Now decapsulate
Ok(x3dh_b(sender_pubkey, spk, &ek, ik, opk))
Ok(x3dh_b(sender_pubkey, spk, ek, ik, opk))
}
}

Expand Down

0 comments on commit dd3e525

Please sign in to comment.