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/modules/cache.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/modules/cache.rs')
-rw-r--r-- | src/modules/cache.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/cache.rs b/src/modules/cache.rs index b07bbbb..68f011f 100644 --- a/src/modules/cache.rs +++ b/src/modules/cache.rs @@ -16,7 +16,7 @@ use bytes::Bytes; use http::Response; use http_body_util::{BodyExt, Full}; use serde::Deserialize; -use serde_yaml::Value; +use serde_yml::Value; use sha2::{Digest, Sha256}; use std::{collections::HashMap, future::Future, pin::Pin, sync::Arc}; use tokio::sync::RwLock; @@ -38,7 +38,7 @@ impl NodeKind for CacheKind { "cache" } fn instanciate(&self, config: Value) -> Result<Arc<dyn Node>> { - let config = serde_yaml::from_value::<CacheConfig>(config)?; + let config = serde_yml::from_value::<CacheConfig>(config)?; Ok(Arc::new(Cache { config, entries: HashMap::new().into(), |