From 3f6ec191b38b4c60ac2d42ab941b4690f42f7c21 Mon Sep 17 00:00:00 2001 From: metamuffin Date: Mon, 11 Nov 2024 15:14:49 +0100 Subject: switch to serde_yml from unmaintained serde_yaml --- src/modules/paths.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/modules/paths.rs') 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> { - let routes = serde_yaml::from_value::>(config)? + let routes = serde_yml::from_value::>(config)? .into_iter() .collect::>(); -- cgit v1.2.3-70-g09d2