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/error.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/error.rs')
-rw-r--r-- | src/modules/error.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/error.rs b/src/modules/error.rs index 01fe859..3e4cc79 100644 --- a/src/modules/error.rs +++ b/src/modules/error.rs @@ -2,7 +2,7 @@ use super::{Node, NodeContext, NodeKind, NodeRequest, NodeResponse}; use crate::error::ServiceError; use futures::Future; use serde::Deserialize; -use serde_yaml::Value; +use serde_yml::Value; use std::{pin::Pin, sync::Arc}; pub struct ErrorKind; @@ -16,7 +16,7 @@ impl NodeKind for ErrorKind { "error" } fn instanciate(&self, config: Value) -> anyhow::Result<Arc<dyn Node>> { - Ok(Arc::new(serde_yaml::from_value::<Error>(config)?)) + Ok(Arc::new(serde_yml::from_value::<Error>(config)?)) } } |