about summary refs log tree commit diff
path: root/src/rt/rust_kernel.cpp
diff options
context:
space:
mode:
authorGraydon Hoare <graydon@mozilla.com>2011-06-29 15:11:20 -0700
committerGraydon Hoare <graydon@mozilla.com>2011-06-29 15:14:55 -0700
commitc796a8f24dfa94a1614da70fbf25b63d3709a116 (patch)
tree14043d11f35f457ee9a09cabd7fdadb4669fa376 /src/rt/rust_kernel.cpp
parent190644063e7081fe715b01dc8d27daec509b6114 (diff)
downloadrust-c796a8f24dfa94a1614da70fbf25b63d3709a116.tar.gz
rust-c796a8f24dfa94a1614da70fbf25b63d3709a116.zip
Re-enable tidy (it was broken) and fix various non-tidy things.
Diffstat (limited to 'src/rt/rust_kernel.cpp')
-rw-r--r--src/rt/rust_kernel.cpp15
1 files changed, 9 insertions, 6 deletions
diff --git a/src/rt/rust_kernel.cpp b/src/rt/rust_kernel.cpp
index f3ebfd4f4b9..8a75e1adcbc 100644
--- a/src/rt/rust_kernel.cpp
+++ b/src/rt/rust_kernel.cpp
@@ -52,7 +52,9 @@ rust_kernel::internal_get_sched_handle(rust_scheduler *sched) {
     rust_handle<rust_scheduler> *handle = NULL;
     if (_sched_handles.get(sched, &handle) == false) {
         handle =
-            new (this) rust_handle<rust_scheduler>(this, sched->message_queue, sched);
+            new (this) rust_handle<rust_scheduler>(this,
+                                                   sched->message_queue,
+                                                   sched);
         _sched_handles.put(sched, handle);
     }
     return handle;
@@ -72,7 +74,8 @@ rust_kernel::get_task_handle(rust_task *task) {
     rust_handle<rust_task> *handle = NULL;
     if (_task_handles.get(task, &handle) == false) {
         handle =
-            new (this) rust_handle<rust_task>(this, task->sched->message_queue,
+            new (this) rust_handle<rust_task>(this,
+                                              task->sched->message_queue,
                                               task);
         _task_handles.put(task, handle);
     }
@@ -85,10 +88,10 @@ rust_kernel::get_port_handle(rust_port *port) {
     _kernel_lock.lock();
     rust_handle<rust_port> *handle = NULL;
     if (_port_handles.get(port, &handle) == false) {
-        handle =
-            new (this) rust_handle<rust_port>(this,
-                                              port->task->sched->message_queue,
-                                              port);
+        handle = new (this)
+            rust_handle<rust_port>(this,
+                                   port->task->sched->message_queue,
+                                   port);
         _port_handles.put(port, handle);
     }
     _kernel_lock.unlock();