summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Beyer <mail@beyermatthias.de>2022-03-31 10:05:30 +0200
committerMatthias Beyer <mail@beyermatthias.de>2022-03-31 10:15:24 +0200
commit040fea69449c38f3f019df13a5fa6008c2aff308 (patch)
tree5609d621169d6f0416baa9e91a5b4034af74fdfc
parentd2d356142430723bbfed102cf8dc41e6fd0aa84e (diff)
Fix: If no features are enabled, this should still build
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
-rw-r--r--src/file/format/mod.rs10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/file/format/mod.rs b/src/file/format/mod.rs
index 3c18e3c..025e98a 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"),
}
}
}