run cargo fmt

This commit is contained in:
Matthias 2021-09-03 02:12:03 +02:00
parent 83c1f4be45
commit d959b54b56
3 changed files with 6 additions and 7 deletions

View file

@ -61,10 +61,10 @@
// required for apple silicon
use ring as _;
use std::fs::File;
use std::io::{self, BufRead};
use std::iter::FromIterator;
use std::{collections::HashSet, fs, str::FromStr, time::Duration};
use std::io::{self, BufRead};
use std::fs::File;
use anyhow::{anyhow, Context, Result};
use headers::{authorization::Basic, Authorization, HeaderMap, HeaderMapExt, HeaderName};
@ -123,7 +123,7 @@ fn run_main() -> Result<i32> {
&mut io::BufReader::new(file)
.lines()
.map(|l| l.expect("Could not read line"))
.collect()
.collect(),
);
}

View file

@ -169,7 +169,7 @@ pub(crate) struct Config {
#[structopt(long)]
#[serde(default)]
pub(crate) exclude_file: Vec<String>,
/// Exclude all private IPs from checking.
/// Equivalent to `--exclude-private --exclude-link-local --exclude-loopback`
#[structopt(short = "E", long, verbatim_doc_comment)]

View file

@ -417,7 +417,7 @@ mod cli {
.stdout(contains("Excluded.........2"));
Ok(())
}
}
#[test]
fn test_multiple_exclude_files() -> Result<()> {
@ -435,6 +435,5 @@ mod cli {
.stdout(contains("Excluded.........3"));
Ok(())
}
}
}