]> git.lizzy.rs Git - rust.git/blobdiff - src/librustuv/signal.rs
Register new snapshots
[rust.git] / src / librustuv / signal.rs
index fd0b6acb8ae746ecef398637aeae07240f4faceb..b478738ec8e722849b9263d89f2de7feb8e2a546 100644 (file)
@@ -20,11 +20,11 @@ pub struct SignalWatcher {
     handle: *uvll::uv_signal_t,
     home: HomeHandle,
 
-    cb: Box<Callback:Send>,
+    cb: Box<Callback + Send>,
 }
 
 impl SignalWatcher {
-    pub fn new(io: &mut UvIoFactory, signum: int, cb: Box<Callback:Send>)
+    pub fn new(io: &mut UvIoFactory, signum: int, cb: Box<Callback + Send>)
                -> Result<Box<SignalWatcher>, UvError> {
         let s = box SignalWatcher {
             handle: UvHandle::alloc(None::<SignalWatcher>, uvll::UV_SIGNAL),