Skip to content

Commit

Permalink
nit: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
merklefruit committed Oct 9, 2024
1 parent 86046f5 commit ed01279
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion msg-socket/src/req/socket.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ where
/// Connects to the target address with the default options.
pub async fn connect(&mut self, addr: impl ToSocketAddrs) -> Result<(), ReqError> {
let mut addrs = lookup_host(addr).await?;
let endpoint = addrs.next().ok_or_else(|| ReqError::NoValidEndpoints)?;
let endpoint = addrs.next().ok_or(ReqError::NoValidEndpoints)?;

self.try_connect(endpoint).await
}
Expand Down

0 comments on commit ed01279

Please sign in to comment.