diff --git a/src/server.rs b/src/server.rs index 4668d34..6df6b81 100644 --- a/src/server.rs +++ b/src/server.rs @@ -21,10 +21,7 @@ pub async fn serve(port: u16, switch_port: bool) -> Result<(), String> { Ok(()) } -async fn create_listener( - port: u16, - switch_port: bool, -) -> Result { +async fn create_listener(port: u16, switch_port: bool) -> Result { let host = HOST.get().unwrap(); let mut port = port; // Loop until the port is available