diff --git a/src/file/format/mod.rs b/src/file/format/mod.rs index 3c18e3c9..025e98a9 100644 --- a/src/file/format/mod.rs +++ b/src/file/format/mod.rs @@ -116,6 +116,16 @@ impl FileFormat { #[cfg(feature = "json5")] FileFormat::Json5 => json5::parse(uri, text), + + #[cfg(all( + not(feature = "toml"), + not(feature = "json"), + not(feature = "yaml"), + not(feature = "ini"), + not(feature = "ron"), + not(feature = "json5"), + ))] + _ => unreachable!("No features are enabled, this library won't work without features"), } } }