From c402c71abc26eb54645d9083d9f9285dd9b90e59 Mon Sep 17 00:00:00 2001 From: Nadja Reitzenstein Date: Sun, 20 Mar 2022 22:27:27 +0100 Subject: [PATCH] Keep old config system --- bffhd/config/mod.rs | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/bffhd/config/mod.rs b/bffhd/config/mod.rs index c8cb36c..2fe0ec5 100644 --- a/bffhd/config/mod.rs +++ b/bffhd/config/mod.rs @@ -6,7 +6,7 @@ use serde::{Serialize, Deserialize}; use std::fmt::Formatter; use std::net::{ToSocketAddrs}; -use serde_dhall::{SimpleType}; +use serde_dhall::StaticType; mod dhall; @@ -17,14 +17,6 @@ use crate::authorization::roles::Role; use crate::capnp::{Listen, TlsListen}; use crate::logging::LogConfig; -pub fn load(path: impl AsRef, args: &clap::ArgMatches) -> anyhow::Result { - unimplemented!() -} - -pub struct ConfigBlock { - static_type: SimpleType, -} - #[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize)] #[serde(deny_unknown_fields)] /// A description of a machine @@ -99,12 +91,6 @@ pub struct ModuleConfig { pub params: HashMap } -pub struct ListenSock { - listen: Listen, - tls_config: TlsListen, -} - - pub(crate) fn deser_option<'de, D, T>(d: D) -> std::result::Result, D::Error> where D: serde::Deserializer<'de>, T: serde::Deserialize<'de>, {