File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change 1
1
#![ feature( core, std_misc) ]
2
- #![ cfg_attr( test, feature( io ) ) ]
2
+ #![ cfg_attr( test, feature( old_io ) ) ]
3
3
4
4
extern crate "route-recognizer" as router;
5
5
extern crate conduit;
@@ -12,9 +12,13 @@ use router::{Router, Match};
12
12
use conduit:: { Method , Handler , Request , Response } ;
13
13
14
14
pub struct RouteBuilder {
15
- routers : HashMap < Method , Router < Box < Handler + Send + Sync > > >
15
+ routers : HashMap < Method , Router < Box < Handler > > > ,
16
16
}
17
17
18
+ // FIXME(#22655) these should not be necessary
19
+ unsafe impl Sync for RouteBuilder { }
20
+ unsafe impl Send for RouteBuilder { }
21
+
18
22
pub struct RouterError ( String ) ;
19
23
20
24
impl RouteBuilder {
@@ -23,7 +27,7 @@ impl RouteBuilder {
23
27
}
24
28
25
29
pub fn recognize < ' a > ( & ' a self , method : & Method , path : & str )
26
- -> Result < Match < & ' a Box < Handler + Send + Sync > > ,
30
+ -> Result < Match < & ' a Box < Handler > > ,
27
31
RouterError >
28
32
{
29
33
match self . routers . get ( method) {
You can’t perform that action at this time.
0 commit comments