We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents da83120 + ed34588 commit 1c61526Copy full SHA for 1c61526
hermit-sys/src/net/mod.rs
@@ -277,7 +277,7 @@ impl AsyncSocket {
277
}
278
279
pub(crate) async fn write(&self, buffer: &[u8]) -> Result<usize, Error> {
280
- let ret = future::poll_fn(|cx| {
+ future::poll_fn(|cx| {
281
self.with(|socket| match socket.state() {
282
TcpState::FinWait1
283
| TcpState::FinWait2
@@ -296,9 +296,7 @@ impl AsyncSocket {
296
297
})
298
299
- .await;
300
-
301
- ret
+ .await
302
303
304
pub(crate) async fn close(&self) -> Result<(), Error> {
rust-toolchain.toml
@@ -1,5 +1,5 @@
1
[toolchain]
2
-channel = "nightly-2022-05-15"
+channel = "nightly-2022-06-29"
3
components = [
4
"rust-src",
5
"llvm-tools-preview",
0 commit comments