From 722536451f683319f8d4e217afd761191a7e6aac Mon Sep 17 00:00:00 2001 From: Sebastian Holmin Date: Thu, 9 Jan 2025 14:55:57 +0100 Subject: [PATCH] Add panic note to docstring --- talpid-tunnel-config-client/src/classic_mceliece.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/talpid-tunnel-config-client/src/classic_mceliece.rs b/talpid-tunnel-config-client/src/classic_mceliece.rs index 93de357cdd00..fbe69149cf04 100644 --- a/talpid-tunnel-config-client/src/classic_mceliece.rs +++ b/talpid-tunnel-config-client/src/classic_mceliece.rs @@ -26,6 +26,10 @@ static KEYPAIR_RX: OnceLock>> = OnceLock::new(); /// /// It can take upwards of 200 ms to generate McEliece key pairs so it needs to be done before we /// start connecting to the tunnel. +/// +/// # Panic +/// +/// Panics if the buffer capacity is 0. pub fn spawn_keypair_worker(bufsize: usize) -> mpsc::Receiver { let (tx, rx) = mpsc::channel(bufsize);