diff options
Diffstat (limited to 'src/libcore/task')
| -rw-r--r-- | src/libcore/task/mod.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libcore/task/mod.rs b/src/libcore/task/mod.rs index 90781044277..8497ac7e565 100644 --- a/src/libcore/task/mod.rs +++ b/src/libcore/task/mod.rs @@ -414,7 +414,7 @@ impl TaskBuilder { mut notify_chan: move notify_chan, sched: x.opts.sched }; - spawn::spawn_raw(move opts, x.gen_body(move f)); + spawn::spawn_raw(move opts, (x.gen_body)(move f)); } /// Runs a task, while transfering ownership of one argument to the child. fn spawn_with<A: Send>(arg: A, f: fn~(v: A)) { |
