aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2023-12-17 02:18:36 +0000
committerAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2023-12-17 02:18:36 +0000
commita34a756df89fa7fdb9b7e688d47b59ac1bb0d6d5 (patch)
treeccb23e8ea80a07dc8811e655a0ba75aef69822e9
parentdfd31c1aa962aa3c24725caaff7dd938a7531e5b (diff)
parentf272aaeb717cecb4e428e854fef24a1f6ee8ae7c (diff)
downloadtokio-emu-34-release.tar.gz
Snap for 11228863 from f272aaeb717cecb4e428e854fef24a1f6ee8ae7c to emu-34-releaseemu-34-release
Change-Id: Ia2658285bbd56b0608ed78cca40a6338b0206c36
-rw-r--r--Cargo.toml4
-rw-r--r--Cargo.toml.orig4
-rw-r--r--tests/io_async_fd.rs11
3 files changed, 13 insertions, 6 deletions
diff --git a/Cargo.toml b/Cargo.toml
index 61e58ce..6728a90 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -205,10 +205,10 @@ version = "1.1.1"
optional = true
[target."cfg(unix)".dev-dependencies.libc]
-version = "0.2.145"
+version = "0.2.149"
[target."cfg(unix)".dev-dependencies.nix]
-version = "0.26"
+version = "0.27.1"
features = [
"fs",
"socket",
diff --git a/Cargo.toml.orig b/Cargo.toml.orig
index 19384b7..069bb13 100644
--- a/Cargo.toml.orig
+++ b/Cargo.toml.orig
@@ -122,8 +122,8 @@ libc = { version = "0.2.145", optional = true }
signal-hook-registry = { version = "1.1.1", optional = true }
[target.'cfg(unix)'.dev-dependencies]
-libc = { version = "0.2.145" }
-nix = { version = "0.26", default-features = false, features = ["fs", "socket"] }
+libc = { version = "0.2.149" }
+nix = { version = "0.27.1", default-features = false, features = ["fs", "socket"] }
[target.'cfg(windows)'.dependencies.windows-sys]
version = "0.48"
diff --git a/tests/io_async_fd.rs b/tests/io_async_fd.rs
index 7abd592..49b5a68 100644
--- a/tests/io_async_fd.rs
+++ b/tests/io_async_fd.rs
@@ -1,7 +1,7 @@
#![warn(rust_2018_idioms)]
#![cfg(all(unix, feature = "full"))]
-use std::os::unix::io::{AsRawFd, RawFd};
+use std::os::unix::io::{AsRawFd, IntoRawFd, RawFd};
use std::sync::{
atomic::{AtomicBool, Ordering},
Arc,
@@ -132,7 +132,14 @@ fn socketpair() -> (FileDescriptor, FileDescriptor) {
SockFlag::empty(),
)
.expect("socketpair");
- let fds = (FileDescriptor { fd: fd_a }, FileDescriptor { fd: fd_b });
+ let fds = (
+ FileDescriptor {
+ fd: fd_a.into_raw_fd(),
+ },
+ FileDescriptor {
+ fd: fd_b.into_raw_fd(),
+ },
+ );
set_nonblocking(fds.0.fd);
set_nonblocking(fds.1.fd);