File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 1
1
[package ]
2
2
3
3
name = " conduit-router"
4
- version = " 0.6.1 "
4
+ version = " 0.6.2 "
5
5
6
6
license = " MIT"
7
7
description = " Router middleware for conduit based on route-recognizer"
Original file line number Diff line number Diff line change @@ -67,14 +67,14 @@ impl RouteBuilder {
67
67
}
68
68
69
69
impl conduit:: Handler for RouteBuilder {
70
- fn call ( & self , request : & mut Request ) -> Result < Response , Box < Error > > {
70
+ fn call ( & self , request : & mut Request ) -> Result < Response , Box < Error + Send > > {
71
71
let m = {
72
72
let method = request. method ( ) ;
73
73
let path = request. path ( ) ;
74
74
75
75
match self . recognize ( & method, path) {
76
76
Ok ( m) => m,
77
- Err ( e) => return Err ( Box :: new ( e) as Box < Error > )
77
+ Err ( e) => return Err ( Box :: new ( e) as Box < Error + Send > )
78
78
}
79
79
} ;
80
80
@@ -193,7 +193,7 @@ mod tests {
193
193
}
194
194
195
195
fn test_handler ( req : & mut conduit:: Request )
196
- -> Result < conduit:: Response , Box < Error > > {
196
+ -> Result < conduit:: Response , Box < Error + Send > > {
197
197
let mut res = vec ! ( ) ;
198
198
res. push ( req. params ( ) [ "id" ] . clone ( ) ) ;
199
199
res. push ( format ! ( "{:?}" , req. method( ) ) ) ;
You can’t perform that action at this time.
0 commit comments