Skip to content

Commit

Permalink
chore: Code style
Browse files Browse the repository at this point in the history
  • Loading branch information
stmh committed Feb 26, 2024
1 parent d1ce677 commit d8ede9a
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,6 @@ fn build_sitemap_url(url: &str, sitemap_name: &str) -> anyhow::Result<Url> {
}

fn apply_basic_authentication(args: &Args, url: &Url) -> anyhow::Result<Url> {

let mut full_url = url.clone();
if let Some(ref s) = &args.authentication {
let v: Vec<&str> = s.split(':').collect();
Expand Down Expand Up @@ -125,8 +124,10 @@ fn get_sitemap_content(args: &Args, url: Url) -> anyhow::Result<UrlVec> {
.par_iter()
.progress_count(sitemaps.len() as u64)
.filter_map(|sitemap_entry| {
let results =
get_sitemap_content(&args, sitemap_entry.loc.get_url().expect("Sitemap URL expected"));
let results = get_sitemap_content(
args,
sitemap_entry.loc.get_url().expect("Sitemap URL expected"),
);
Some(results)
})
.collect();
Expand Down Expand Up @@ -241,7 +242,7 @@ fn output_to_json(result: &ResultData) -> Result<()> {

#[cfg(test)]
mod tests {
use super::{build_sitemap_url, get_sitemap_content, Args, apply_basic_authentication};
use super::{apply_basic_authentication, build_sitemap_url, get_sitemap_content, Args};

#[test]
fn test_sitemap_build_simple_url() {
Expand Down

0 comments on commit d8ede9a

Please sign in to comment.