mirror of
https://github.com/Hopiu/lychee.git
synced 2026-05-03 03:14:47 +00:00
run cargo fmt
This commit is contained in:
parent
83c1f4be45
commit
d959b54b56
3 changed files with 6 additions and 7 deletions
|
|
@ -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(),
|
||||
);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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)]
|
||||
|
|
|
|||
|
|
@ -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(())
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue