diff options
author | Quentin Dufour <quentin@deuxfleurs.fr> | 2021-09-20 15:00:31 +0200 |
---|---|---|
committer | Quentin Dufour <quentin@deuxfleurs.fr> | 2021-09-20 15:13:16 +0200 |
commit | 7d478d997620c0af41a6ffb8b3f29dc6dda2cb98 (patch) | |
tree | 03b08b4c27401b46c3e64c53e3469d2803efa3e9 /src/fw.rs | |
parent | 2bbc9109991f8bb79a09a965a1d2779e1749b25b (diff) | |
download | diplonat-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.rs | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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 |