Skip to content

Commit

Permalink
fix(router): Use new find_equiv signature.
Browse files Browse the repository at this point in the history
See rust-lang/rust#18440 for the change in rust.
  • Loading branch information
timhabermaas committed Nov 2, 2014
1 parent e032380 commit 20a4095
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ git = "https://github.com/servo/rust-url.git"

[dependencies.rust-mustache]

git = "https://github.com/SimonPersson/rust-mustache.git"
git = "https://github.com/timhabermaas/rust-mustache.git"

[dependencies.groupable]

Expand Down
2 changes: 1 addition & 1 deletion src/router/router.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ pub struct RouteResult<'a> {

impl<'a> RouteResult<'a> {
pub fn param(&self, key: &str) -> &str {
let idx = self.route.variables.find_equiv(&key).unwrap();
let idx = self.route.variables.find_equiv(key).unwrap();
self.params[*idx].as_slice()
}
}
Expand Down

0 comments on commit 20a4095

Please sign in to comment.