diff options
Diffstat (limited to 'src/libnative/io/timer_unix.rs')
| -rw-r--r-- | src/libnative/io/timer_unix.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libnative/io/timer_unix.rs b/src/libnative/io/timer_unix.rs index 11f9c4b3d8c..ab993997c85 100644 --- a/src/libnative/io/timer_unix.rs +++ b/src/libnative/io/timer_unix.rs @@ -67,7 +67,7 @@ pub struct Timer { } struct Inner { - cb: Option<Box<rtio::Callback:Send>>, + cb: Option<Box<rtio::Callback + Send>>, interval: u64, repeat: bool, target: u64, @@ -251,7 +251,7 @@ impl rtio::RtioTimer for Timer { Timer::sleep(msecs); } - fn oneshot(&mut self, msecs: u64, cb: Box<rtio::Callback:Send>) { + fn oneshot(&mut self, msecs: u64, cb: Box<rtio::Callback + Send>) { let now = now(); let mut inner = self.inner(); @@ -263,7 +263,7 @@ impl rtio::RtioTimer for Timer { unsafe { HELPER.send(NewTimer(inner)); } } - fn period(&mut self, msecs: u64, cb: Box<rtio::Callback:Send>) { + fn period(&mut self, msecs: u64, cb: Box<rtio::Callback + Send>) { let now = now(); let mut inner = self.inner(); |
