Skip to content

Commit 3dc1c85

Browse files
committed
std: sys: net: uefi: Make TcpStream Send
- Since UEFI has no threads, this should be safe. - Makes compiling remote-test-server simpler. Signed-off-by: Ayush Singh <ayush@beagleboard.org>
1 parent 1279939 commit 3dc1c85

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

  • library/std/src/sys/net/connection/uefi

library/std/src/sys/net/connection/uefi/mod.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ pub struct TcpStream {
1515
write_timeout: Arc<Mutex<Option<Duration>>>,
1616
}
1717

18+
// SAFETY: UEFI has no threads.
19+
unsafe impl Send for TcpStream {}
20+
1821
impl TcpStream {
1922
fn new(inner: tcp::Tcp) -> Self {
2023
Self {

0 commit comments

Comments
 (0)