make clippy happy

This commit is contained in:
Georgio Nicolas
2026-01-26 15:16:29 +01:00
parent 5c50b760a8
commit fe45b856b7
2 changed files with 3 additions and 12 deletions
+1 -1
View File
@@ -132,7 +132,7 @@ impl Debug for LpLocalPeer {
"mlkem_public_key: {}",
match &self.mlkem {
Some(keypair) => format!("{:?}", keypair.1.as_ref()),
None => format!("None"),
None => "None".to_string(),
}
),
)
+2 -11
View File
@@ -306,17 +306,8 @@ impl LpSession {
pub fn local_kem_encapsulation_key(&self, kem: &KEM) -> Option<Arc<EncapsulationKey>> {
match kem {
KEM::MlKem768 => self
.local_peer
.mlkem
.as_ref()
.and_then(|x| Some(x.1.clone())),
KEM::McEliece => self
.local_peer
.mceliece
.as_ref()
.and_then(|x| Some(x.1.clone())),
KEM::X25519 => todo!(),
KEM::MlKem768 => self.local_peer.mlkem.as_ref().map(|x| x.1.clone()),
KEM::McEliece => self.local_peer.mceliece.as_ref().map(|x| x.1.clone()),
_ => None,
}
}