diff options
Diffstat (limited to 'src/fw_actor.rs')
-rw-r--r-- | src/fw_actor.rs | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/fw_actor.rs b/src/fw_actor.rs index 5147a9c..0fa6e64 100644 --- a/src/fw_actor.rs +++ b/src/fw_actor.rs @@ -1,4 +1,7 @@ +use std::collections::HashSet; + use anyhow::Result; +use iptables; use log::*; use tokio::{ select, @@ -6,10 +9,7 @@ use tokio::{ time::{self, Duration}, }; -use crate::fw; -use crate::messages; -use iptables; -use std::collections::HashSet; +use crate::{fw, messages}; pub struct FirewallActor { pub ipt: iptables::IPTables, @@ -32,7 +32,7 @@ impl FirewallActor { fw::setup(&ctx.ipt)?; - return Ok(ctx); + return Ok(ctx) } pub async fn listen(&mut self) -> Result<()> { @@ -81,6 +81,6 @@ impl FirewallActor { fw::open_ports(&self.ipt, ports_to_open)?; - return Ok(()); + return Ok(()) } } |