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>
This commit is contained in:
Ayush Singh 2026-01-12 11:31:20 +05:30
parent 1279939b38
commit 50b60aaff3
No known key found for this signature in database
GPG key ID: 05CEF5C789E55A74

View file

@ -9,6 +9,9 @@ pub(crate) enum Tcp {
V4(tcp4::Tcp4),
}
// SAFETY: UEFI has no threads.
unsafe impl Send for Tcp {}
impl Tcp {
pub(crate) fn connect(addr: &SocketAddr, timeout: Option<Duration>) -> io::Result<Self> {
match addr {