about summary refs log tree commit diff
path: root/src/libcore/task/mod.rs
diff options
context:
space:
mode:
authorPatrick Walton <pcwalton@mimiga.net>2013-02-20 17:07:17 -0800
committerPatrick Walton <pcwalton@mimiga.net>2013-02-20 21:14:20 -0800
commitbf2a225c0b6f90f61bcaf4a6f33d9eaf424795b6 (patch)
treed321d9cab209f002e4236afd09d5d12fd640acc7 /src/libcore/task/mod.rs
parenta307608781027d8c1b4c99bf1a8ac2c0d960a1bc (diff)
downloadrust-bf2a225c0b6f90f61bcaf4a6f33d9eaf424795b6.tar.gz
rust-bf2a225c0b6f90f61bcaf4a6f33d9eaf424795b6.zip
librustc: Separate most trait bounds with '+'. rs=plussing
Diffstat (limited to 'src/libcore/task/mod.rs')
-rw-r--r--src/libcore/task/mod.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libcore/task/mod.rs b/src/libcore/task/mod.rs
index 4b15d1f76c9..54dfa7459a1 100644
--- a/src/libcore/task/mod.rs
+++ b/src/libcore/task/mod.rs
@@ -396,7 +396,7 @@ impl TaskBuilder {
         spawn::spawn_raw(opts, (x.gen_body)(f));
     }
     /// Runs a task, while transfering ownership of one argument to the child.
-    fn spawn_with<A: Owned>(arg: A, f: fn~(v: A)) {
+    fn spawn_with<A:Owned>(arg: A, f: fn~(v: A)) {
         let arg = ~mut Some(arg);
         do self.spawn || {
             f(option::swap_unwrap(arg))
@@ -416,7 +416,7 @@ impl TaskBuilder {
      * # Failure
      * Fails if a future_result was already set for this task.
      */
-    fn try<T: Owned>(f: fn~() -> T) -> Result<T,()> {
+    fn try<T:Owned>(f: fn~() -> T) -> Result<T,()> {
         let (po, ch) = stream::<T>();
         let mut result = None;