diff --git a/Cargo.lock b/Cargo.lock index 030b5b8..926b229 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -84,7 +84,7 @@ checksum = "e280fbe77cc62c91527259e9442153f4688736748d24660126286329742b4c6c" [[package]] name = "polldance" version = "0.1.0" -source = "git+https://git.asonix.dog/safe-async/polldance#61732c97b64e7382fc8947a9170450e70196e0e0" +source = "git+https://git.asonix.dog/safe-async/polldance#7e82523115d201c78303d020a77473fec88a12ac" dependencies = [ "rustix", ] diff --git a/src/io.rs b/src/io.rs index 5577e49..3119b22 100644 --- a/src/io.rs +++ b/src/io.rs @@ -410,7 +410,7 @@ impl Future for BindTcpListener { let builder = match Arc::try_unwrap(builder) { Ok(builder) => builder, Err(arc) => { - this.io = Some(arc); + this.io = Some(Ok(arc)); return Poll::Pending; } }; @@ -450,7 +450,7 @@ impl Future for BindUdpSocket { let builder = match Arc::try_unwrap(builder) { Ok(builder) => builder, Err(arc) => { - this.io = Some(arc); + this.io = Some(Ok(arc)); return Poll::Pending; } }; @@ -490,7 +490,7 @@ impl Future for Connect { let builder = match Arc::try_unwrap(builder) { Ok(builder) => builder, Err(arc) => { - this.io = Some(arc); + this.io = Some(Ok(arc)); return Poll::Pending; } };