about summary refs log tree commit diff
path: root/src/libstd/sync/semaphore.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/libstd/sync/semaphore.rs')
-rw-r--r--src/libstd/sync/semaphore.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstd/sync/semaphore.rs b/src/libstd/sync/semaphore.rs
index 505819fbf8a..8d44084671a 100644
--- a/src/libstd/sync/semaphore.rs
+++ b/src/libstd/sync/semaphore.rs
@@ -193,7 +193,7 @@ mod tests {
                 tx.send(()).unwrap();
                 drop(s2.access());
                 tx.send(()).unwrap();
-            }).detach();
+            });
             rx.recv().unwrap(); // wait for child to come alive
         }
         rx.recv().unwrap(); // wait for child to be done