-
Notifications
You must be signed in to change notification settings - Fork 52
Open
Description
I'm not sure if disabling all the unicode features is intended to be a valid configuration? Compiling nucleo-matcher with default-features="false" results in this build error:
1 error[E0665]: `#[derive(Default)]` on enum with no `#[default]`
--> .cargo/registry/src/index.crates.io-1949cf8c6b5b557f/nucleo-matcher-0.
3.1/src/pattern.rs:12:45
|
12 | #[derive(Clone, Copy, Debug, PartialEq, Eq, Default)]
| ^^^^^^^
...
15 | / pub enum CaseMatching {
16 | | /// Characters never match their case folded version (`a != A`).
17 | | Respect,
18 | | /// Characters always match their case folded version (`a == A`).
... |
25 | | Smart,
26 | | }
| |_- this enum needs a unit variant marked with `#[default]`
|
help: make this unit variant default by placing `#[default]` on it
|
17 | #[default] Respect,
| ++++++++++
2 error[E0665]: `#[derive(Default)]` on enum with no `#[default]`
--> .cargo/registry/src/index.crates.io-1949cf8c6b5b557f/nucleo-matcher-0.
3.1/src/pattern.rs:28:45
|
28 | #[derive(Clone, Copy, Debug, PartialEq, Eq, Default)]
| ^^^^^^^
...
31 | / pub enum Normalization {
32 | | /// Characters never match their normalized version (`a != ä`).
33 | | Never,
34 | | /// Acts like [`Never`](Normalization::Never) if any character in a pattern
atom
... |
38 | | Smart,
39 | | }
| |_- this enum needs a unit variant marked with `#[default]`
|
help: make this unit variant default by placing `#[default]` on it
|
33 | #[default] Never,
| ++++++++++
For more information about this error, try `rustc --explain E0665`.
error: could not compile `nucleo-matcher` (lib) due to 2 previous errors
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels