Skip to content

Commit f8a9d23

Browse files
committed
Update to rust master
1 parent c61f061 commit f8a9d23

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

src/lib.rs

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#![feature(core, std_misc)]
2-
#![cfg_attr(test, feature(io))]
2+
#![cfg_attr(test, feature(old_io))]
33

44
extern crate "route-recognizer" as router;
55
extern crate conduit;
@@ -12,9 +12,13 @@ use router::{Router, Match};
1212
use conduit::{Method, Handler, Request, Response};
1313

1414
pub struct RouteBuilder {
15-
routers: HashMap<Method, Router<Box<Handler + Send + Sync>>>
15+
routers: HashMap<Method, Router<Box<Handler>>>,
1616
}
1717

18+
// FIXME(#22655) these should not be necessary
19+
unsafe impl Sync for RouteBuilder {}
20+
unsafe impl Send for RouteBuilder {}
21+
1822
pub struct RouterError(String);
1923

2024
impl RouteBuilder {
@@ -23,7 +27,7 @@ impl RouteBuilder {
2327
}
2428

2529
pub fn recognize<'a>(&'a self, method: &Method, path: &str)
26-
-> Result<Match<&'a Box<Handler + Send + Sync>>,
30+
-> Result<Match<&'a Box<Handler>>,
2731
RouterError>
2832
{
2933
match self.routers.get(method) {

0 commit comments

Comments
 (0)