diff options
author | Quentin <quentin@dufour.io> | 2021-09-20 16:06:02 +0200 |
---|---|---|
committer | Quentin <quentin@dufour.io> | 2021-09-20 16:06:02 +0200 |
commit | 4d4d453afa3edafe71db2ae60171b8696b38a3c9 (patch) | |
tree | 64a54012efbac76bca6c5f0d8214fdae44743bc8 /src/fw_actor.rs | |
parent | 2bbc9109991f8bb79a09a965a1d2779e1749b25b (diff) | |
parent | 68cb4d5482649baca3a79d3fd0e3449a6af0533b (diff) | |
download | diplonat-4d4d453afa3edafe71db2ae60171b8696b38a3c9.tar.gz diplonat-4d4d453afa3edafe71db2ae60171b8696b38a3c9.zip |
Merge pull request 'Extensively use rustfmt' (#11) from quality/rustfmt into main
Reviewed-on: https://git.deuxfleurs.fr/Deuxfleurs/diplonat/pulls/11
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(()) } } |