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.5.1 "
4
+ version = " 0.5.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 4
4
extern crate "route-recognizer" as router;
5
5
extern crate conduit;
6
6
7
- use std:: collections:: hash_map:: { HashMap , Occupied , Vacant } ;
7
+ use std:: collections:: hash_map:: { HashMap , Entry } ;
8
8
use std:: fmt:: Show ;
9
9
10
10
use router:: { Router , Match } ;
@@ -32,8 +32,8 @@ impl RouteBuilder {
32
32
handler : H ) -> & ' a mut RouteBuilder {
33
33
{
34
34
let router = match self . routers . entry ( method) {
35
- Occupied ( e) => e. into_mut ( ) ,
36
- Vacant ( e) => e. set ( Router :: new ( ) ) ,
35
+ Entry :: Occupied ( e) => e. into_mut ( ) ,
36
+ Entry :: Vacant ( e) => e. set ( Router :: new ( ) ) ,
37
37
} ;
38
38
router. add ( pattern, box handler as Box < Handler + Send + Sync > ) ;
39
39
}
You can’t perform that action at this time.
0 commit comments