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:
commit
a830a9aa01
1 changed files with 3 additions and 0 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue