From 784eddaf4f802893a8bc9833c0a044bbc529e04f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kasper=20Ga=C5=82kowski?= Date: Tue, 8 Nov 2022 18:43:19 +0100 Subject: [PATCH] run rustfmt --- src/main.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/main.rs b/src/main.rs index 3836fea9a..045bee47b 100644 --- a/src/main.rs +++ b/src/main.rs @@ -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; @@ -90,18 +90,18 @@ fn run() -> Result { .unwrap_or(&empty) .iter() .chain([pattern]) - .map(|pat| { build_pattern_regex(pat, &opts) }) + .map(|pat| build_pattern_regex(pat, &opts)) .collect::>>()?; 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::>>()?; - + walk::scan(&search_paths, Arc::new(regexps), Arc::new(config)) }