aboutsummaryrefslogtreecommitdiff
path: root/src/fw.rs
diff options
context:
space:
mode:
authorQuentin Dufour <quentin@deuxfleurs.fr>2021-09-20 15:00:31 +0200
committerQuentin Dufour <quentin@deuxfleurs.fr>2021-09-20 15:13:16 +0200
commit7d478d997620c0af41a6ffb8b3f29dc6dda2cb98 (patch)
tree03b08b4c27401b46c3e64c53e3469d2803efa3e9 /src/fw.rs
parent2bbc9109991f8bb79a09a965a1d2779e1749b25b (diff)
downloaddiplonat-7d478d997620c0af41a6ffb8b3f29dc6dda2cb98.tar.gz
diplonat-7d478d997620c0af41a6ffb8b3f29dc6dda2cb98.zip
Stricter Rust formating rules and build in the CI
Diffstat (limited to 'src/fw.rs')
-rw-r--r--src/fw.rs6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/fw.rs b/src/fw.rs
index 0b07a12..e18a301 100644
--- a/src/fw.rs
+++ b/src/fw.rs
@@ -1,9 +1,11 @@
-use crate::messages;
+use std::collections::HashSet;
+
use anyhow::{Context, Result};
use iptables;
use log::*;
use regex::Regex;
-use std::collections::HashSet;
+
+use crate::messages;
pub fn setup(ipt: &iptables::IPTables) -> Result<()> {
// ensure we start from a clean state without any rule already set