From fffc7a3b8a8a3ead3992d400ec9ed035f1f93b39 Mon Sep 17 00:00:00 2001 From: metamuffin Date: Tue, 3 Oct 2023 09:31:05 +0200 Subject: use yaml for configuration --- base/src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'base/src/lib.rs') diff --git a/base/src/lib.rs b/base/src/lib.rs index 062b028..132fd45 100644 --- a/base/src/lib.rs +++ b/base/src/lib.rs @@ -12,11 +12,11 @@ use jellycommon::{config::GlobalConfig, AssetLocation}; use std::{fs::File, path::PathBuf, sync::LazyLock}; pub static CONF: LazyLock = LazyLock::new(|| { - serde_json::from_reader( + serde_yaml::from_reader( File::open( std::env::args() .nth(1) - .expect("First argument must specify the config.json to use."), + .expect("First argument must specify the configuration to use."), ) .unwrap(), ) -- cgit v1.2.3-70-g09d2