@@ -23,16 +23,16 @@ use std::rt::rtio::{PausableIdleCallback, Callback};
2323use std:: rt:: exclusive:: Exclusive ;
2424
2525/// This is the only exported function from this module.
26- pub fn event_loop ( ) -> Box < EventLoop : Send > {
27- box BasicLoop :: new ( ) as Box < EventLoop : Send >
26+ pub fn event_loop ( ) -> Box < EventLoop + Send > {
27+ box BasicLoop :: new ( ) as Box < EventLoop + Send >
2828}
2929
3030struct BasicLoop {
31- work : Vec < proc ( ) : Send > , // pending work
32- remotes : Vec < ( uint , Box < Callback : Send > ) > ,
31+ work : Vec < proc ( ) : Send > , // pending work
32+ remotes : Vec < ( uint , Box < Callback + Send > ) > ,
3333 next_remote : uint ,
3434 messages : Arc < Exclusive < Vec < Message > > > ,
35- idle : Option < Box < Callback : Send > > ,
35+ idle : Option < Box < Callback + Send > > ,
3636 idle_active : Option < Arc < atomics:: AtomicBool > > ,
3737}
3838
@@ -132,22 +132,22 @@ impl EventLoop for BasicLoop {
132132 }
133133
134134 // FIXME: Seems like a really weird requirement to have an event loop provide.
135- fn pausable_idle_callback ( & mut self , cb : Box < Callback : Send > )
136- -> Box < PausableIdleCallback : Send > {
135+ fn pausable_idle_callback ( & mut self , cb : Box < Callback + Send > )
136+ -> Box < PausableIdleCallback + Send > {
137137 rtassert ! ( self . idle. is_none( ) ) ;
138138 self . idle = Some ( cb) ;
139139 let a = Arc :: new ( atomics:: AtomicBool :: new ( true ) ) ;
140140 self . idle_active = Some ( a. clone ( ) ) ;
141- box BasicPausable { active : a } as Box < PausableIdleCallback : Send >
141+ box BasicPausable { active : a } as Box < PausableIdleCallback + Send >
142142 }
143143
144- fn remote_callback ( & mut self , f : Box < Callback : Send > )
145- -> Box < RemoteCallback : Send > {
144+ fn remote_callback ( & mut self , f : Box < Callback + Send > )
145+ -> Box < RemoteCallback + Send > {
146146 let id = self . next_remote ;
147147 self . next_remote += 1 ;
148148 self . remotes . push ( ( id, f) ) ;
149149 box BasicRemote :: new ( self . messages . clone ( ) , id) as
150- Box < RemoteCallback : Send >
150+ Box < RemoteCallback + Send >
151151 }
152152
153153 fn io < ' a > ( & ' a mut self ) -> Option < & ' a mut IoFactory > { None }
0 commit comments