diff --git a/kem/tests/hpke.rs b/kem/tests/hpke.rs index bdabe25f4..732937e0d 100644 --- a/kem/tests/hpke.rs +++ b/kem/tests/hpke.rs @@ -29,7 +29,7 @@ impl Decapsulate for PrivateKey { type Error = HpkeError; fn decapsulate(&self, encapped_key: &EncappedKey) -> Result { - ::decap(&self.0, None, &encapped_key) + ::decap(&self.0, None, encapped_key) } } diff --git a/kem/tests/x3dh.rs b/kem/tests/x3dh.rs index d3c688fc6..5b3de9f41 100644 --- a/kem/tests/x3dh.rs +++ b/kem/tests/x3dh.rs @@ -88,7 +88,7 @@ impl Decapsulate 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)) } }