From a0617eae68135b48a36e3fdf978cc6f951f92b6e Mon Sep 17 00:00:00 2001 From: Patrick Walton Date: Thu, 29 Nov 2012 17:51:16 -0800 Subject: librustc: Eliminate most expressions of the form `a.b()` that are not method calls. rs=refactoring --- src/libcore/task/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/libcore/task') 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(arg: A, f: fn~(v: A)) { -- cgit 1.4.1-3-g733a5