about summary refs log tree commit diff
path: root/src/lib/task.rs
diff options
context:
space:
mode:
authorMarijn Haverbeke <marijnh@gmail.com>2011-09-12 11:27:30 +0200
committerMarijn Haverbeke <marijnh@gmail.com>2011-09-12 12:04:14 +0200
commitfc6b7c8b381bcb506eab0f50c69b6cc18aafacb2 (patch)
treec3511313bdb6c7cc8919426ce980e558396fe92c /src/lib/task.rs
parent64a6376da5ef6e40870af77410d3542ff7bab140 (diff)
downloadrust-fc6b7c8b381bcb506eab0f50c69b6cc18aafacb2.tar.gz
rust-fc6b7c8b381bcb506eab0f50c69b6cc18aafacb2.zip
Reformat for new mode syntax, step 1
Long lines were fixed in a very crude way, as I'll be following up
with another reformat in a bit.
Diffstat (limited to 'src/lib/task.rs')
-rw-r--r--src/lib/task.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/task.rs b/src/lib/task.rs
index b00e6c19991..24a9582ba4c 100644
--- a/src/lib/task.rs
+++ b/src/lib/task.rs
@@ -124,8 +124,8 @@ fn spawn_inner(thunk: -fn(), notify: option<comm::chan<task_notification>>) ->
     let ptrsize = sys::size_of::<*u8>();
     let thunkfn: *mutable uint = cast(sp - ptrsize * 2u);
     let thunkenv: *mutable uint = cast(sp - ptrsize);
-    *thunkfn = cast(raw_thunk.code);
-    *thunkenv = cast(raw_thunk.env);
+    *thunkfn = cast(raw_thunk.code);;
+    *thunkenv = cast(raw_thunk.env);;
     // align the stack to 16 bytes
     (**task_ptr).stack_ptr = cast(sp - ptrsize * 4u);
 
@@ -136,7 +136,7 @@ fn spawn_inner(thunk: -fn(), notify: option<comm::chan<task_notification>>) ->
         (**task_ptr).notify_chan = c;
       }
       none { }
-    };
+    }
 
     // give the thunk environment's allocation to the new task
     rustrt::migrate_alloc(cast(raw_thunk.env), id);