Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix failed compilation with --no-default-features #69

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions matcher/src/pattern.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ use crate::Utf32String;
/// How to treat a case mismatch between two characters.
pub enum CaseMatching {
/// Characters never match their case folded version (`a != A`).
#[cfg_attr(not(feature = "unicode-casefold"), default)]
Respect,
/// Characters always match their case folded version (`a == A`).
#[cfg(feature = "unicode-casefold")]
Expand All @@ -30,6 +31,7 @@ pub enum CaseMatching {
/// How to handle unicode normalization,
pub enum Normalization {
/// Characters never match their normalized version (`a != ä`).
#[cfg_attr(not(feature = "unicode-normalization"), default)]
Never,
/// Acts like [`Never`](Normalization::Never) if any character in a pattern atom
/// would need to be normalized. Otherwise normalization occurs (`a == ä` but `ä != a`).
Expand Down
Loading