Skip to content

Commit

Permalink
Fixing cfg attribute feature check
Browse files Browse the repository at this point in the history
  • Loading branch information
mWalrus committed Oct 19, 2022
1 parent a4716bb commit bfda062
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,11 @@ confy. Please enable one of either the `toml_conf`, `yaml_conf`, \
or `ron_conf` features."
);

#[cfg(all(feature = "toml_conf", feature = "yaml_conf", feature = "ron_conf"))]
#[cfg(any(
all(feature = "toml_conf", feature = "yaml_conf"),
all(feature = "toml_conf", feature = "ron_conf"),
all(feature = "ron_conf", feature = "yaml_conf"),
))]
compile_error!(
"Exactly one config language feature must be enabled to compile \
confy. Please disable one of either the `toml_conf`, `yaml_conf`, or `ron_conf` features. \
Expand Down

0 comments on commit bfda062

Please sign in to comment.