Skip to content

Commit 1c61526

Browse files
bors[bot]mkroening
andauthored
Merge #329
329: Upgrade to nightly-2022-06-29 r=mkroening a=mkroening Closes #300. 🎉 Closes #322. Closes #320. Co-authored-by: Martin Kröning <mkroening@posteo.net>
2 parents da83120 + ed34588 commit 1c61526

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

hermit-sys/src/net/mod.rs

+2-4
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ impl AsyncSocket {
277277
}
278278

279279
pub(crate) async fn write(&self, buffer: &[u8]) -> Result<usize, Error> {
280-
let ret = future::poll_fn(|cx| {
280+
future::poll_fn(|cx| {
281281
self.with(|socket| match socket.state() {
282282
TcpState::FinWait1
283283
| TcpState::FinWait2
@@ -296,9 +296,7 @@ impl AsyncSocket {
296296
}
297297
})
298298
})
299-
.await;
300-
301-
ret
299+
.await
302300
}
303301

304302
pub(crate) async fn close(&self) -> Result<(), Error> {

rust-toolchain.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[toolchain]
2-
channel = "nightly-2022-05-15"
2+
channel = "nightly-2022-06-29"
33
components = [
44
"rust-src",
55
"llvm-tools-preview",

0 commit comments

Comments
 (0)