Rollup merge of #150990 - uefi-run-test, r=joboet

std: sys: net: uefi: Make TcpStream Send

- Since UEFI has no threads, this should be safe.
- Makes compiling remote-test-server simpler.
This commit is contained in:
Jonathan Brouwer 2026-01-13 09:01:32 +01:00 committed by GitHub
commit a830a9aa01
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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 {