Skip to content

Commit 2f32c0d

Browse files
olsonjefferybrson
authored andcommitted
core: cleanup in task.rs for things missed in last rebase
1 parent d41af3e commit 2f32c0d

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/libcore/task.rs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -78,9 +78,9 @@ export ThreadPerTask;
7878
export ManualThreads;
7979
export PlatformThread;
8080

81-
macro_rules! move_it {
81+
macro_rules! move_it (
8282
{ $x:expr } => { unsafe { let y <- *ptr::addr_of($x); y } }
83-
}
83+
)
8484

8585
/* Data types */
8686

@@ -209,7 +209,7 @@ type TaskOpts = {
209209
linked: bool,
210210
supervised: bool,
211211
mut notify_chan: Option<Chan<Notification>>,
212-
sched: option<SchedOpts>,
212+
sched: Option<SchedOpts>,
213213
};
214214

215215
/**
@@ -254,7 +254,7 @@ priv impl TaskBuilder {
254254
}
255255
self.consumed = true;
256256
let notify_chan = if self.opts.notify_chan == None {
257-
none
257+
None
258258
} else {
259259
Some(option::swap_unwrap(&mut self.opts.notify_chan))
260260
};
@@ -450,12 +450,12 @@ impl TaskBuilder {
450450
* must be greater than zero.
451451
*/
452452
fn spawn(+f: fn~()) {
453-
let notify_chan = if self.opts.notify_chan == none {
453+
let notify_chan = if self.opts.notify_chan == None {
454454
None
455455
} else {
456456
let swapped_notify_chan =
457457
option::swap_unwrap(&mut self.opts.notify_chan);
458-
some(swapped_notify_chan)
458+
Some(swapped_notify_chan)
459459
};
460460
let x = self.consume();
461461
let opts = {
@@ -1309,7 +1309,7 @@ fn spawn_raw(+opts: TaskOpts, +f: fn~()) {
13091309
//let mut notifier = None;//notify_chan.map(|c| AutoNotify(c));
13101310
let notifier = match notify_chan {
13111311
Some(notify_chan_value) => {
1312-
let moved_ncv = move_it!{notify_chan_value};
1312+
let moved_ncv = move_it!(notify_chan_value);
13131313
Some(AutoNotify(moved_ncv))
13141314
}
13151315
_ => None

0 commit comments

Comments
 (0)