From 2e6f916113c5bd6798311c68eed383fdf378f592 Mon Sep 17 00:00:00 2001 From: Michal 'vorner' Vaner Date: Fri, 28 May 2021 21:07:17 +0200 Subject: [PATCH] Fix versions --- Cargo.lock | 2 +- signal-hook-async-std/Cargo.toml | 2 +- signal-hook-async-std/tests/async_std.rs | 4 ++-- signal-hook-mio/Cargo.toml | 2 +- signal-hook-registry/Cargo.toml | 2 +- signal-hook-tokio/Cargo.toml | 2 +- tests/iterator.rs | 4 ++-- 7 files changed, 9 insertions(+), 9 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 856d0c9..b4e0771 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -691,7 +691,7 @@ dependencies = [ [[package]] name = "signal-hook" -version = "0.4.0" +version = "0.3.9" dependencies = [ "cc", "libc", diff --git a/signal-hook-async-std/Cargo.toml b/signal-hook-async-std/Cargo.toml index cac9870..442ba15 100644 --- a/signal-hook-async-std/Cargo.toml +++ b/signal-hook-async-std/Cargo.toml @@ -23,7 +23,7 @@ maintenance = { status = "actively-developed" } libc = "~0.2" async-io = "~1" futures-lite = "~1" -signal-hook = { version = "~0.4", path = ".." } +signal-hook = { version = "~0.3", path = ".." } [dev-dependencies] async-std = { version = "~1", features = ["attributes"] } diff --git a/signal-hook-async-std/tests/async_std.rs b/signal-hook-async-std/tests/async_std.rs index b2e1d83..1996a81 100644 --- a/signal-hook-async-std/tests/async_std.rs +++ b/signal-hook-async-std/tests/async_std.rs @@ -46,9 +46,9 @@ async fn delayed() { let signals_task = async_std::task::spawn(get_signal(signals, Arc::clone(&recieved))); async_std::task::sleep(Duration::from_millis(100)).await; - assert_eq!(recieved.load(Ordering::SeqCst), false); + assert!(!recieved.load(Ordering::SeqCst)); raise(SIGUSR1).unwrap(); signals_task.await; - assert_eq!(recieved.load(Ordering::SeqCst), true); + assert!(recieved.load(Ordering::SeqCst)); } diff --git a/signal-hook-mio/Cargo.toml b/signal-hook-mio/Cargo.toml index 29e82c1..6c9d931 100644 --- a/signal-hook-mio/Cargo.toml +++ b/signal-hook-mio/Cargo.toml @@ -25,7 +25,7 @@ support-v0_7 = ["mio-0_7"] [dependencies] libc = "~0.2" -signal-hook = { version = "~0.4", path = ".." } +signal-hook = { version = "~0.3", path = ".." } mio-0_7 = { package = "mio", version = "~0.7", features = ["os-util", "uds"], optional = true} mio-0_6 = { package = "mio", version = "~0.6", optional = true} mio-uds = { version = "~0.6", optional = true} diff --git a/signal-hook-registry/Cargo.toml b/signal-hook-registry/Cargo.toml index 36537c2..6bb060f 100644 --- a/signal-hook-registry/Cargo.toml +++ b/signal-hook-registry/Cargo.toml @@ -21,4 +21,4 @@ maintenance = { status = "actively-developed" } libc = "~0.2" [dev-dependencies] -signal-hook = { version = "~0.4", path = ".." } +signal-hook = { version = "~0.3", path = ".." } diff --git a/signal-hook-tokio/Cargo.toml b/signal-hook-tokio/Cargo.toml index 3a25ed9..8447e2b 100644 --- a/signal-hook-tokio/Cargo.toml +++ b/signal-hook-tokio/Cargo.toml @@ -24,7 +24,7 @@ futures-v0_3 = ["futures-core-0_3"] [dependencies] libc = "~0.2" -signal-hook = { version = "~0.4", path = ".." } +signal-hook = { version = "~0.3", path = ".." } futures-core-0_3 = { package = "futures-core", version = "~0.3", optional = true } tokio = { version = "~1", features = ["net"] } diff --git a/tests/iterator.rs b/tests/iterator.rs index 7093b28..90e0598 100644 --- a/tests/iterator.rs +++ b/tests/iterator.rs @@ -247,7 +247,7 @@ fn delayed_signal_consumed() { fn is_closed_initially_returns_false() { let (_, controller) = setup_for_sigusr2(); - assert_eq!(controller.is_closed(), false); + assert!(!controller.is_closed()); } #[test] @@ -256,5 +256,5 @@ fn is_closed_returns_true_when_closed() { let (_, controller) = setup_for_sigusr2(); controller.close(); - assert_eq!(controller.is_closed(), true); + assert!(controller.is_closed()); }