Cleaning up code

This commit is contained in:
Nadja Reitzenstein 2022-03-12 14:23:07 +01:00
parent 7015fd755a
commit c5852d50fb
2 changed files with 0 additions and 4 deletions

View File

@ -8,7 +8,6 @@ use crate::resources::state::State;
mod shelly;
pub trait Actor {
fn apply(&mut self, state: State) -> BoxFuture<'static, ()>;
}

View File

@ -22,9 +22,6 @@ pub fn read(path: &Path) -> Result<Config> {
#[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<Listen>,
/// Machine descriptions to load