mirror of
https://github.com/valmojr/armatak.git
synced 2026-06-14 03:23:30 +00:00
formatted some rust docs
This commit is contained in:
@@ -35,7 +35,12 @@ fn connect_plain(address: &str) -> Result<TransportStream, String> {
|
||||
.to_socket_addrs()
|
||||
.map_err(|e| format!("failed to resolve {}: {}", address, e))?
|
||||
.next()
|
||||
.ok_or_else(|| format!("failed to resolve {}: no socket addresses returned", address))?;
|
||||
.ok_or_else(|| {
|
||||
format!(
|
||||
"failed to resolve {}: no socket addresses returned",
|
||||
address
|
||||
)
|
||||
})?;
|
||||
|
||||
info!(
|
||||
"Opening plain TCP connection to {} (resolved={}) with timeout {:?}",
|
||||
|
||||
Reference in New Issue
Block a user