Skip to content

Commit b9b6bf5

Browse files
author
Jayce Fayne
committed
fix clippy warnings
1 parent 7073213 commit b9b6bf5

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/lib.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1112,7 +1112,7 @@ impl Async<TcpListener> {
11121112
/// ```
11131113
pub fn bind<A: Into<SocketAddr>>(addr: A) -> io::Result<Async<TcpListener>> {
11141114
let addr = addr.into();
1115-
Ok(Async::new(TcpListener::bind(addr)?)?)
1115+
Async::new(TcpListener::bind(addr)?)
11161116
}
11171117

11181118
/// Accepts a new incoming TCP connection.
@@ -1260,7 +1260,7 @@ impl Async<UdpSocket> {
12601260
/// ```
12611261
pub fn bind<A: Into<SocketAddr>>(addr: A) -> io::Result<Async<UdpSocket>> {
12621262
let addr = addr.into();
1263-
Ok(Async::new(UdpSocket::bind(addr)?)?)
1263+
Async::new(UdpSocket::bind(addr)?)
12641264
}
12651265

12661266
/// Receives a single datagram message.
@@ -1442,7 +1442,7 @@ impl Async<UnixListener> {
14421442
/// ```
14431443
pub fn bind<P: AsRef<Path>>(path: P) -> io::Result<Async<UnixListener>> {
14441444
let path = path.as_ref().to_owned();
1445-
Ok(Async::new(UnixListener::bind(path)?)?)
1445+
Async::new(UnixListener::bind(path)?)
14461446
}
14471447

14481448
/// Accepts a new incoming UDS stream connection.
@@ -1577,7 +1577,7 @@ impl Async<UnixDatagram> {
15771577
/// ```
15781578
pub fn bind<P: AsRef<Path>>(path: P) -> io::Result<Async<UnixDatagram>> {
15791579
let path = path.as_ref().to_owned();
1580-
Ok(Async::new(UnixDatagram::bind(path)?)?)
1580+
Async::new(UnixDatagram::bind(path)?)
15811581
}
15821582

15831583
/// Creates a UDS datagram socket not bound to any address.
@@ -1593,7 +1593,7 @@ impl Async<UnixDatagram> {
15931593
/// # std::io::Result::Ok(()) });
15941594
/// ```
15951595
pub fn unbound() -> io::Result<Async<UnixDatagram>> {
1596-
Ok(Async::new(UnixDatagram::unbound()?)?)
1596+
Async::new(UnixDatagram::unbound()?)
15971597
}
15981598

15991599
/// Creates an unnamed pair of connected Unix datagram sockets.

0 commit comments

Comments
 (0)