Skip to content

Commit

Permalink
pattern: fix compilation
Browse files Browse the repository at this point in the history
This fixes compilation when the 'pattern' feature
is enabled. This wasn't previously tested since it
is a nightly only feature. But in this commit, we
add it to CI explicitly.

PR #772
  • Loading branch information
Luro02 committed May 6, 2021
1 parent 238b775 commit 11543fd
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .github/workflows/ci.yml
Expand Up @@ -151,6 +151,11 @@ jobs:
cd bench
./run rust --no-run --verbose
- if: matrix.build == 'nightly'
name: Run tests with pattern feature
run: |
cargo test --test default --no-default-features --features 'std pattern unicode-perl'
rustfmt:
name: rustfmt
runs-on: ubuntu-18.04
Expand Down
3 changes: 2 additions & 1 deletion src/pattern.rs
@@ -1,7 +1,8 @@
use std::str::pattern::{Pattern, SearchStep, Searcher};

use re_unicode::{Matches, Regex};
use crate::re_unicode::{Matches, Regex};

#[derive(Debug)]
pub struct RegexSearcher<'r, 't> {
haystack: &'t str,
it: Matches<'r, 't>,
Expand Down

0 comments on commit 11543fd

Please sign in to comment.