Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
chanderlud committed Jan 5, 2024
1 parent 3da04b6 commit 93d7314
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 3 additions & 1 deletion src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,9 @@ impl std::fmt::Display for Error {
}
ErrorKind::NoExitStatus => write!(f, "no exit status"),
ErrorKind::CommandNotFound => write!(f, "cccp command not found"),
ErrorKind::CommandFailed(ref status) => write!(f, "command failed with status {}", status),
ErrorKind::CommandFailed(ref status) => {
write!(f, "command failed with status {}", status)
}
}
}
}
Expand Down
4 changes: 1 addition & 3 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -604,9 +604,7 @@ async fn connect_stream(
}

/// listens for a remote client to connect
async fn listen_stream(
options: &mut Options,
) -> Result<(CipherStream<TcpStream>, IpAddr)> {
async fn listen_stream(options: &mut Options) -> Result<(CipherStream<TcpStream>, IpAddr)> {
let listener = TcpListener::bind(("0.0.0.0", options.start_port)).await?;
let (tcp_stream, remote_addr) = listener.accept().await?;

Expand Down

0 comments on commit 93d7314

Please sign in to comment.