summaryrefslogtreecommitdiff
path: root/src/config.rs
diff options
context:
space:
mode:
authorLia Lenckowski <lialenck@protonmail.com>2023-10-01 22:52:58 +0200
committermetamuffin <metamuffin@disroot.org>2023-10-04 14:26:52 +0200
commit0114be25b4ba27d82b403249856ebc862bf2b2d8 (patch)
treeb67135a59b1a1150dfd7a1fc03bf6b5e3e62c397 /src/config.rs
parent43d4264d763e21b94124a35b81ae609f47bab8bd (diff)
downloadgnix-0114be25b4ba27d82b403249856ebc862bf2b2d8.tar
gnix-0114be25b4ba27d82b403249856ebc862bf2b2d8.tar.bz2
gnix-0114be25b4ba27d82b403249856ebc862bf2b2d8.tar.zst
change from toml to yaml; version bump
Signed-off-by: metamuffin <metamuffin@disroot.org>
Diffstat (limited to 'src/config.rs')
-rw-r--r--src/config.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/config.rs b/src/config.rs
index c250b80..c02af52 100644
--- a/src/config.rs
+++ b/src/config.rs
@@ -84,7 +84,7 @@ where
impl Config {
pub fn load(path: &str) -> anyhow::Result<Config> {
let raw = read_to_string(path).context("reading config file")?;
- let config: Config = toml::from_str(&raw).context("parsing config")?;
+ let config: Config = serde_yaml::from_str(&raw).context("parsing config")?;
Ok(config)
}
}