Skip to content

Commit e68b3b3

Browse files
committed
update aho-corasick
1 parent 7c8fe2f commit e68b3b3

File tree

3 files changed

+7
-16
lines changed

3 files changed

+7
-16
lines changed

Cargo.lock

Lines changed: 4 additions & 13 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ license = "MIT"
66
edition = "2021"
77

88
[dependencies]
9-
aho-corasick = "0.7"
9+
aho-corasick = "1.1"
1010
atomicwrites = "0.4"
1111
bincode = "1.0"
1212
brotli = "3.3"

src/extract.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,13 @@ static IGNORE_BLOCK: &[(&str, &str)] = &[
3636

3737
lazy_static! {
3838
static ref IGNORE_BLOCK_START: AhoCorasick =
39-
AhoCorasick::new(IGNORE_BLOCK.iter().map(|x| &x.0).cloned());
39+
AhoCorasick::new(IGNORE_BLOCK.iter().map(|x| &x.0).cloned()).unwrap();
4040
}
4141

4242
lazy_static! {
4343
static ref IGNORE_BLOCK_END: Vec<AhoCorasick> = IGNORE_BLOCK
4444
.iter()
45-
.map(|&s| AhoCorasick::new(iter::once(s.1)))
45+
.map(|&s| AhoCorasick::new(iter::once(s.1)).unwrap())
4646
.collect();
4747
}
4848

0 commit comments

Comments
 (0)