]> git.lizzy.rs Git - rust.git/blobdiff - src/libnative/io/timer_win32.rs
Register new snapshots
[rust.git] / src / libnative / io / timer_win32.rs
index d175060dd98606f04502e01e96c3d240d8e86a93..9be09c6de076284ba5a4233425236e1aa1c4c289 100644 (file)
@@ -36,7 +36,7 @@ pub struct Timer {
 }
 
 pub enum Req {
-    NewTimer(libc::HANDLE, Box<Callback:Send>, bool),
+    NewTimer(libc::HANDLE, Box<Callback + Send>, bool),
     RemoveTimer(libc::HANDLE, Sender<()>),
 }
 
@@ -148,7 +148,7 @@ fn sleep(&mut self, msecs: u64) {
         let _ = unsafe { imp::WaitForSingleObject(self.obj, libc::INFINITE) };
     }
 
-    fn oneshot(&mut self, msecs: u64, cb: Box<Callback:Send>) {
+    fn oneshot(&mut self, msecs: u64, cb: Box<Callback + Send>) {
         self.remove();
 
         // see above for the calculation
@@ -162,7 +162,7 @@ fn oneshot(&mut self, msecs: u64, cb: Box<Callback:Send>) {
         self.on_worker = true;
     }
 
-    fn period(&mut self, msecs: u64, cb: Box<Callback:Send>) {
+    fn period(&mut self, msecs: u64, cb: Box<Callback + Send>) {
         self.remove();
 
         // see above for the calculation