fixed broken singlethreaded support (whoops)

This commit is contained in:
Lynne Megido 2021-02-15 05:13:16 +10:00
parent 2431e3493a
commit ce721c20f6
Signed by: lynnesbian
GPG Key ID: F0A184B5213D9F90

View File

@ -20,9 +20,10 @@ use std::path::{Path, PathBuf};
use clap::Clap;
use log::{debug, info, trace, warn};
use once_cell::sync::OnceCell;
use rayon::prelude::*;
use smartstring::alias::String;
use walkdir::{DirEntry, WalkDir};
#[cfg(feature = "multi-threaded")]
use rayon::prelude::*;
use crate::findings::Findings;
use crate::formats::{Format, Script};
@ -144,7 +145,7 @@ fn scan_from_walkdir(entries: Vec<DirEntry>) -> Vec<Result<Findings, (ScanError,
#[cfg(not(feature = "multi-threaded"))] {
entries
.iter()
.map(|entry: &DirEntry| scan_file(db, entry))
.map(|entry: &DirEntry| scan_file(entry))
.collect()
}
}