From c5852d50fbd76ef5f63a36db98416c993bd02e23 Mon Sep 17 00:00:00 2001 From: Nadja Reitzenstein Date: Sat, 12 Mar 2022 14:23:07 +0100 Subject: [PATCH] Cleaning up code --- bffhd/actors/mod.rs | 1 - bffhd/config.rs | 3 --- 2 files changed, 4 deletions(-) diff --git a/bffhd/actors/mod.rs b/bffhd/actors/mod.rs index 36424f2..1289c37 100644 --- a/bffhd/actors/mod.rs +++ b/bffhd/actors/mod.rs @@ -8,7 +8,6 @@ use crate::resources::state::State; mod shelly; - pub trait Actor { fn apply(&mut self, state: State) -> BoxFuture<'static, ()>; } diff --git a/bffhd/config.rs b/bffhd/config.rs index bc78fa4..bfcf4a5 100644 --- a/bffhd/config.rs +++ b/bffhd/config.rs @@ -22,9 +22,6 @@ pub fn read(path: &Path) -> Result { #[derive(Debug, Clone, Serialize, Deserialize)] pub struct Config { /// A list of address/port pairs to listen on. - // TODO: This should really be a variant type; that is something that can figure out itself if - // it contains enough information to open a socket (i.e. it checks if it's a valid path (=> - // Unix socket) or IPv4/v6 address) pub listens: Vec, /// Machine descriptions to load