Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
mraszyk committed Nov 19, 2024
1 parent ea190a0 commit 61dd2c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dfx/src/util/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ const DECIMAL_POINT: char = '.';
// thus, we need to recreate SocketAddr with the kernel-provided dynamically allocated port here.
#[context("Failed to find available socket address")]
pub fn get_reusable_socket_addr(ip: IpAddr, port: u16) -> DfxResult<SocketAddr> {
let listener = TcpListener::bind(&SocketAddr::new(ip, port))
let listener = TcpListener::bind(SocketAddr::new(ip, port))
.with_context(|| format!("Failed to bind socket to {}:{}.", ip, port))?;
listener
.local_addr()
Expand Down

0 comments on commit 61dd2c4

Please sign in to comment.