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/proxy.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/proxy.rs')
-rw-r--r-- | src/modules/proxy.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/proxy.rs b/src/modules/proxy.rs index 925e456..763129f 100644 --- a/src/modules/proxy.rs +++ b/src/modules/proxy.rs @@ -6,7 +6,7 @@ use hyper::{http::HeaderValue, upgrade::OnUpgrade, StatusCode}; use hyper_util::rt::TokioIo; use log::{debug, warn}; use serde::Deserialize; -use serde_yaml::Value; +use serde_yml::Value; use std::{net::SocketAddr, pin::Pin, sync::Arc}; use tokio::net::TcpStream; @@ -23,7 +23,7 @@ impl NodeKind for ProxyKind { "proxy" } fn instanciate(&self, config: Value) -> anyhow::Result<Arc<dyn Node>> { - Ok(Arc::new(serde_yaml::from_value::<Proxy>(config)?)) + Ok(Arc::new(serde_yml::from_value::<Proxy>(config)?)) } } impl Node for Proxy { |