diff options
author | metamuffin <metamuffin@disroot.org> | 2024-11-11 15:14:49 +0100 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2024-11-11 15:14:49 +0100 |
commit | 3f6ec191b38b4c60ac2d42ab941b4690f42f7c21 (patch) | |
tree | 4a0d266da9670bd8179406f82a08c05047029fc3 /src/config.rs | |
parent | c59e34ac28b8af16c522b6f685015770c0be7223 (diff) | |
download | gnix-3f6ec191b38b4c60ac2d42ab941b4690f42f7c21.tar gnix-3f6ec191b38b4c60ac2d42ab941b4690f42f7c21.tar.bz2 gnix-3f6ec191b38b4c60ac2d42ab941b4690f42f7c21.tar.zst |
switch to serde_yml from unmaintained serde_yaml
Diffstat (limited to 'src/config.rs')
-rw-r--r-- | src/config.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/config.rs b/src/config.rs index a6f7d1b..196b489 100644 --- a/src/config.rs +++ b/src/config.rs @@ -10,7 +10,7 @@ use serde::{ de::{value, Error, SeqAccess, Visitor}, Deserialize, Deserializer, Serialize, }; -use serde_yaml::value::TaggedValue; +use serde_yml::value::TaggedValue; use std::{ collections::BTreeMap, fmt, @@ -180,7 +180,7 @@ impl Config { pub fn load(path: &Path) -> anyhow::Result<Config> { info!("loading config from {path:?}"); let raw = read_to_string(path).context("reading config file")?; - let config: Config = serde_yaml::from_str(&raw).context("during parsing")?; + let config: Config = serde_yml::from_str(&raw).context("during parsing")?; Ok(config) } } |