summaryrefslogtreecommitdiffstats
path: root/src/os/linux.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/os/linux.rs')
-rw-r--r--src/os/linux.rs7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/os/linux.rs b/src/os/linux.rs
index 4f326a0..642de38 100644
--- a/src/os/linux.rs
+++ b/src/os/linux.rs
@@ -90,14 +90,11 @@ fn lookup_addr(ip: &IpAddr) -> Option<String> {
::dns_lookup::lookup_addr(ip).ok()
}
-fn sigwinch () -> (
- Box<Fn(Box<Fn() + Send + Sync + 'static>) + Send + Sync + 'static>,
- Box<Fn() + Send + Sync + 'static>
-) {
+fn sigwinch () -> (Box<Fn(Box<Fn()>) + Send>, Box<Fn() + Send>) {
let signals = Signals::new(&[signal_hook::SIGWINCH]).unwrap();
let on_winch = {
let signals = signals.clone();
- move |cb: Box<Fn() + Send + Sync + 'static>| {
+ move |cb: Box<Fn()>| {
for signal in signals.forever() {
match signal {
signal_hook::SIGWINCH => cb(),