Repository: rust-cli/config-rs (language: rust)

Issue:
`FileFormat` needs to be marked as `non_exhaustive`
The features are not additive because someone `match`ing on this could break if a feature is added


Discussion / hints:

Fix patch:
diff --git a/src/file/format/mod.rs b/src/file/format/mod.rs
index 055a4ce5..857813ad 100644
--- a/src/file/format/mod.rs
+++ b/src/file/format/mod.rs
@@ -27,6 +27,7 @@ mod json5;
 ///
 /// Although it is possible to define custom formats using [`Format`] trait it is recommended to use `FileFormat` if possible.
 #[derive(Debug, Clone, Copy, Eq, PartialEq, Hash)]
+#[non_exhaustive]
 pub enum FileFormat {
     /// TOML (parsed with toml)
     #[cfg(feature = "toml")]


Test patch: