1
0
mirror of https://github.com/fafhrd91/actix-net synced 2025-08-31 10:46:58 +02:00

doc tweaks

This commit is contained in:
Rob Ede
2021-11-01 02:19:20 +00:00
parent e49fedbfe7
commit 3c6f586b89
6 changed files with 21 additions and 24 deletions

View File

@@ -503,15 +503,13 @@ pub(super) fn bind_addr<S: ToSocketAddrs>(
if success {
Ok(sockets)
} else if let Some(err) = err.take() {
Err(err)
} else {
if let Some(err) = err.take() {
Err(err)
} else {
Err(io::Error::new(
io::ErrorKind::Other,
"Can not bind to socket address",
))
}
Err(io::Error::new(
io::ErrorKind::Other,
"Can not bind to socket address",
))
}
}