Skip to content

Commit 3116653

Browse files
committed
Update signal-hook to 0.3
1 parent 379c50f commit 3116653

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

crossbeam-channel/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,4 +35,4 @@ optional = true
3535
[dev-dependencies]
3636
num_cpus = "1.13.0"
3737
rand = "0.8"
38-
signal-hook = "0.2"
38+
signal-hook = "0.3"

crossbeam-channel/examples/stopwatch.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@ fn main() {
1212
use std::time::{Duration, Instant};
1313

1414
use crossbeam_channel::{bounded, select, tick, Receiver};
15+
use signal_hook::consts::SIGINT;
1516
use signal_hook::iterator::Signals;
16-
use signal_hook::SIGINT;
1717

1818
// Creates a channel that gets a message every time `SIGINT` is signalled.
1919
fn sigint_notifier() -> io::Result<Receiver<()>> {
2020
let (s, r) = bounded(100);
21-
let signals = Signals::new(&[SIGINT])?;
21+
let mut signals = Signals::new(&[SIGINT])?;
2222

2323
thread::spawn(move || {
2424
for _ in signals.forever() {

0 commit comments

Comments
 (0)