From 6bc8cf156087759f3c4f6ee70412ea41a29fc837 Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Thu, 31 Mar 2022 10:05:30 +0200 Subject: [PATCH] Fix: If no features are enabled, this should still build Signed-off-by: Matthias Beyer --- src/file/format/mod.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/file/format/mod.rs b/src/file/format/mod.rs index 3c18e3c9..2d8a5016 100644 --- a/src/file/format/mod.rs +++ b/src/file/format/mod.rs @@ -116,6 +116,8 @@ impl FileFormat { #[cfg(feature = "json5")] FileFormat::Json5 => json5::parse(uri, text), + + _ => unreachable!("No features are enabled, this library won't work without features"), } } }