Skip to content

Commit 4b0babc

Browse files
committed
Merge pull request http-rs#12 from aleksandrpak/master
Fixed shadowed lifetime. Fixed unused mut.
2 parents 6beb76e + 094614e commit 4b0babc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/nfa.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ pub struct Match<'a> {
188188
}
189189

190190
impl<'a> Match<'a> {
191-
pub fn new<'a>(state: uint, captures: Vec<&'a str>) -> Match<'a> {
191+
pub fn new<'b>(state: uint, captures: Vec<&'b str>) -> Match<'b> {
192192
Match{ state: state, captures: captures }
193193
}
194194
}
@@ -227,7 +227,7 @@ impl<T> NFA<T> {
227227
threads = next_threads;
228228
}
229229

230-
let mut returned = threads.into_iter().filter(|thread| {
230+
let returned = threads.into_iter().filter(|thread| {
231231
self.get(thread.state).acceptance
232232
});
233233

0 commit comments

Comments
 (0)