Skip to content

Commit

Permalink
chore(fmt): cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
lomirus committed Dec 20, 2023
1 parent 3e1c550 commit bf502c8
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<TcpListener, String> {
async fn create_listener(port: u16, switch_port: bool) -> Result<TcpListener, String> {
let host = HOST.get().unwrap();
let mut port = port;
// Loop until the port is available
Expand Down

0 comments on commit bf502c8

Please sign in to comment.