about summary refs log tree commit diff
path: root/src/libgreen/basic.rs
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2014-03-24 10:40:36 -0700
committerAlex Crichton <alex@alexcrichton.com>2014-03-24 11:19:28 -0700
commitb19261a7498155c20b0877e56526e5c018a48be6 (patch)
tree93dad1fc8d47be8f5b3b79a3a0e30b87a4f594f2 /src/libgreen/basic.rs
parentf8f60d80bf573cd8b4b5680b44c9cabe2b862f78 (diff)
green: Remove the dependence on the crate map
This is the final nail in the coffin for the crate map. The `start` function for
libgreen now has a new added parameter which is the event loop factory instead
of inferring it from the crate map. The two current valid values for this
parameter are `green::basic::event_loop` and `rustuv::event_loop`.
Diffstat (limited to 'src/libgreen/basic.rs')
-rw-r--r--src/libgreen/basic.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libgreen/basic.rs b/src/libgreen/basic.rs
index ba12ca2e04f..b2596e56815 100644
--- a/src/libgreen/basic.rs
+++ b/src/libgreen/basic.rs
@@ -237,7 +237,7 @@ mod test {
     fn pool() -> SchedPool {
         SchedPool::new(PoolConfig {
             threads: 1,
-            event_loop_factory: Some(basic::event_loop),
+            event_loop_factory: basic::event_loop,
         })
     }
 
@@ -267,7 +267,7 @@ mod test {
     fn multi_thread() {
         let mut pool = SchedPool::new(PoolConfig {
             threads: 2,
-            event_loop_factory: Some(basic::event_loop),
+            event_loop_factory: basic::event_loop,
         });
 
         for _ in range(0, 20) {