mirror of https://github.com/sharkdp/fd.git
inline value used only once
This commit is contained in:
parent
df4227c614
commit
74e593c43c
|
@ -53,7 +53,6 @@ pub fn scan(path_vec: &[PathBuf], pattern: Arc<Regex>, config: Arc<FdOptions>) {
|
||||||
.next()
|
.next()
|
||||||
.expect("Error: Path vector can not be empty");
|
.expect("Error: Path vector can not be empty");
|
||||||
let (tx, rx) = channel();
|
let (tx, rx) = channel();
|
||||||
let threads = config.threads;
|
|
||||||
|
|
||||||
let mut override_builder = OverrideBuilder::new(first_path_buf.as_path());
|
let mut override_builder = OverrideBuilder::new(first_path_buf.as_path());
|
||||||
|
|
||||||
|
@ -106,7 +105,7 @@ pub fn scan(path_vec: &[PathBuf], pattern: Arc<Regex>, config: Arc<FdOptions>) {
|
||||||
walker.add(path_entry.as_path());
|
walker.add(path_entry.as_path());
|
||||||
}
|
}
|
||||||
|
|
||||||
let parallel_walker = walker.threads(threads).build_parallel();
|
let parallel_walker = walker.threads(config.threads).build_parallel();
|
||||||
|
|
||||||
let wants_to_quit = Arc::new(AtomicBool::new(false));
|
let wants_to_quit = Arc::new(AtomicBool::new(false));
|
||||||
if config.ls_colors.is_some() && config.command.is_none() {
|
if config.ls_colors.is_some() && config.command.is_none() {
|
||||||
|
|
Loading…
Reference in New Issue