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/hosts.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/modules/hosts.rs') diff --git a/src/modules/hosts.rs b/src/modules/hosts.rs index 72d1afd..6bd213a 100644 --- a/src/modules/hosts.rs +++ b/src/modules/hosts.rs @@ -3,7 +3,7 @@ use crate::{config::DynNode, error::ServiceError}; use futures::Future; use hyper::header::HOST; use serde::Deserialize; -use serde_yaml::Value; +use serde_yml::Value; use std::{collections::HashMap, pin::Pin, sync::Arc}; #[derive(Deserialize)] @@ -16,7 +16,7 @@ impl NodeKind for HostsKind { "hosts" } fn instanciate(&self, config: Value) -> anyhow::Result> { - Ok(Arc::new(serde_yaml::from_value::(config)?)) + Ok(Arc::new(serde_yml::from_value::(config)?)) } } impl Node for Hosts { -- cgit v1.2.3-70-g09d2