Skip to content

Commit 3164196

Browse files
committed
Update to rust master
1 parent e611b5e commit 3164196

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22

33
name = "conduit-router"
4-
version = "0.5.1"
4+
version = "0.5.2"
55
authors = ["[email protected]"]
66
license = "MIT"
77
description = "Router middleware for conduit based on route-recognizer"

src/lib.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
extern crate "route-recognizer" as router;
55
extern crate conduit;
66

7-
use std::collections::hash_map::{HashMap, Occupied, Vacant};
7+
use std::collections::hash_map::{HashMap, Entry};
88
use std::fmt::Show;
99

1010
use router::{Router, Match};
@@ -32,8 +32,8 @@ impl RouteBuilder {
3232
handler: H) -> &'a mut RouteBuilder {
3333
{
3434
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()),
3737
};
3838
router.add(pattern, box handler as Box<Handler + Send + Sync>);
3939
}

0 commit comments

Comments
 (0)