Skip to content
This repository was archived by the owner on Mar 22, 2024. It is now read-only.

Commit de8973d

Browse files
committed
simplify lifetime
1 parent 942063d commit de8973d

File tree

3 files changed

+110
-165
lines changed

3 files changed

+110
-165
lines changed

benches/benches.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,17 +13,17 @@ impl Pattern {
1313
fn state<'a, S: engine::StrDrive>(
1414
&self,
1515
string: S,
16-
) -> (engine::Request<'a, S>, engine::State<'a, S>) {
16+
) -> (engine::Request<'a, S>, engine::State<S>) {
1717
self.state_range(string, 0..usize::MAX)
1818
}
1919

2020
fn state_range<'a, S: engine::StrDrive>(
2121
&self,
2222
string: S,
2323
range: std::ops::Range<usize>,
24-
) -> (engine::Request<'a, S>, engine::State<'a, S>) {
24+
) -> (engine::Request<'a, S>, engine::State<S>) {
2525
let req = engine::Request::new(string, range.start, range.end, self.code, false);
26-
let state = engine::State::new(0);
26+
let state = engine::State::new();
2727
(req, state)
2828
}
2929
}

0 commit comments

Comments
 (0)