aboutsummaryrefslogtreecommitdiff
path: root/src/modules/error.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/error.rs')
-rw-r--r--src/modules/error.rs4
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)?))
}
}