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()