diff options
| author | Patrick Walton <pcwalton@mimiga.net> | 2012-11-29 17:51:16 -0800 |
|---|---|---|
| committer | Patrick Walton <pcwalton@mimiga.net> | 2012-11-29 17:51:56 -0800 |
| commit | a0617eae68135b48a36e3fdf978cc6f951f92b6e (patch) | |
| tree | e86ef30960a405e17e7cda1f802e567b187d2255 /src/libcore/task | |
| parent | b38d7f65388fabf383d3e3a4e4c3a56403f57542 (diff) | |
| download | rust-a0617eae68135b48a36e3fdf978cc6f951f92b6e.tar.gz rust-a0617eae68135b48a36e3fdf978cc6f951f92b6e.zip | |
librustc: Eliminate most expressions of the form `a.b()` that are not method calls. rs=refactoring
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)) { |
