Skip to content

Commit

Permalink
run rustfmt
Browse files Browse the repository at this point in the history
  • Loading branch information
Uthar committed Nov 8, 2022
1 parent 0324526 commit 784edda
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ use atty::Stream;
use clap::{CommandFactory, Parser};
use globset::GlobBuilder;
use lscolors::LsColors;
use regex::bytes::{RegexBuilder, RegexSetBuilder, Regex};
use regex::bytes::{Regex, RegexBuilder, RegexSetBuilder};

use crate::cli::{ColorWhen, Opts};
use crate::config::Config;
Expand Down Expand Up @@ -90,18 +90,18 @@ fn run() -> Result<ExitCode> {
.unwrap_or(&empty)
.iter()
.chain([pattern])
.map(|pat| { build_pattern_regex(pat, &opts) })
.map(|pat| build_pattern_regex(pat, &opts))
.collect::<Result<Vec<String>>>()?;

let config = construct_config(opts, &pattern_regexps)?;

ensure_use_hidden_option_for_leading_dot_pattern(&config, &pattern_regexps)?;

let regexps = pattern_regexps
.iter()
.map(|pat| { build_regex(pat.to_string(), &config) })
.map(|pat| build_regex(pat.to_string(), &config))
.collect::<Result<Vec<Regex>>>()?;

walk::scan(&search_paths, Arc::new(regexps), Arc::new(config))
}

Expand Down

0 comments on commit 784edda

Please sign in to comment.