Skip to content

Commit 7ff687c

Browse files
committed
Bump to 0.1.7
1 parent cbd92c2 commit 7ff687c

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@ license = "MIT"
55
repository = "https://github.com/conduit-rust/route-recognizer.rs"
66
keywords = ["router", "url"]
77

8-
version = "0.1.6"
8+
version = "0.1.7"
99
authors = ["wycats"]

src/nfa.rs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -212,9 +212,10 @@ impl<T> NFA<T> {
212212
}
213213
}
214214

215-
pub fn process<'a, I: Ord>(&self, string: &'a str, ord: |index: uint| -> I)
216-
-> Result<Match<'a>, String>
217-
{
215+
pub fn process<'a, I, F>(&self, string: &'a str, mut ord: F)
216+
-> Result<Match<'a>, String>
217+
where I: Ord, F: FnMut(uint) -> I
218+
{
218219
let mut threads = vec![Thread::new()];
219220

220221
for (i, char) in string.chars().enumerate() {

0 commit comments

Comments
 (0)