From 7ebcbab9ac626fd67011a091e3fddac7940485ff Mon Sep 17 00:00:00 2001 From: "programmer@kl.netlib.re" Date: Thu, 27 Oct 2022 21:21:18 +0200 Subject: [PATCH] dont warn dead code for test utils --- src/utils.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/utils.rs b/src/utils.rs index 4579d1a..0989319 100644 --- a/src/utils.rs +++ b/src/utils.rs @@ -79,6 +79,7 @@ pub fn torrent_to_magnet>(torrent: T) -> Result { } // Fallible: only used in tests +#[allow(dead_code)] pub fn find_free_port() -> u16 { let bind = TcpListener::bind("127.0.0.1:0").unwrap(); bind.local_addr().unwrap().port()