Skip to content

Commit aea0175

Browse files
authored
pcre2: fix test failures on targets that don't support JIT
This commit uses `jit_if_available` instead of `jit` in the tests, allowing them to fall back to non-JIT compilation on targets that don't support JIT. PR #41
1 parent 2a6f6ec commit aea0175

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/bytes.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1343,7 +1343,7 @@ mod tests {
13431343
let re = RegexBuilder::new()
13441344
.extended(true)
13451345
.utf(true)
1346-
.jit(true)
1346+
.jit_if_available(true)
13471347
.build(pattern)
13481348
.unwrap();
13491349
let matched = re.find(hay.as_bytes()).unwrap().unwrap();
@@ -1364,7 +1364,7 @@ mod tests {
13641364
let re = RegexBuilder::new()
13651365
.extended(true)
13661366
.utf(true)
1367-
.jit(true)
1367+
.jit_if_available(true)
13681368
.build(pattern)
13691369
.unwrap();
13701370
let matched = re.find(hay.as_bytes()).unwrap().unwrap();

0 commit comments

Comments
 (0)