aboutsummaryrefslogtreecommitdiff
path: root/src/modules/paths.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/paths.rs')
-rw-r--r--src/modules/paths.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/paths.rs b/src/modules/paths.rs
index 8c6d0c5..755d550 100644
--- a/src/modules/paths.rs
+++ b/src/modules/paths.rs
@@ -3,7 +3,7 @@ use crate::{config::DynNode, error::ServiceError};
use futures::Future;
use http::Uri;
use regex::{Regex, RegexSet};
-use serde_yaml::Value;
+use serde_yml::Value;
use std::{collections::BTreeMap, pin::Pin, sync::Arc};
pub struct PathsKind;
@@ -19,7 +19,7 @@ impl NodeKind for PathsKind {
"paths"
}
fn instanciate(&self, config: Value) -> anyhow::Result<Arc<dyn Node>> {
- let routes = serde_yaml::from_value::<BTreeMap<String, DynNode>>(config)?
+ let routes = serde_yml::from_value::<BTreeMap<String, DynNode>>(config)?
.into_iter()
.collect::<Vec<(String, DynNode)>>();