Skip to content

Commit

Permalink
impl: fix compilation error when perf-literal is disabled
Browse files Browse the repository at this point in the history
It's unclear to me why CI did not catch this. CI explicitly tests
building regex without the perf-literal feature enabled.
  • Loading branch information
BurntSushi committed May 1, 2021
1 parent 9f9f693 commit 0c6dfbc
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
1.5.1 (2021-04-30)
==================
This is a patch release that fixes a compilation error when the `perf-literal`
feature is not enabled.


1.5.0 (2021-04-30)
==================
This release primarily updates to Rust 2018 (finally) and bumps the MSRV to
Expand Down
2 changes: 1 addition & 1 deletion src/literal/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ mod imp;
#[allow(missing_docs)]
#[cfg(not(feature = "perf-literal"))]
mod imp {
use syntax::hir::literal::Literals;
use regex_syntax::hir::literal::Literals;

#[derive(Clone, Debug)]
pub struct LiteralSearcher(());
Expand Down

0 comments on commit 0c6dfbc

Please sign in to comment.