auto merge of #14900 : alexcrichton/rust/snapshots, r=huonw
Closes #14898 Closes #14918
This commit is contained in:
commit
7ec78053ec
94 changed files with 321 additions and 841 deletions
|
@ -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,
|
||||
|
@ -266,7 +266,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();
|
||||
|
||||
|
@ -278,7 +278,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();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue