diff options
author | Canop <cano.petrole@gmail.com> | 2020-09-06 16:09:10 +0200 |
---|---|---|
committer | Canop <cano.petrole@gmail.com> | 2020-09-06 16:09:10 +0200 |
commit | 84995c105161aa7641ab2042fd58ef2d26354b05 (patch) | |
tree | a5b3da1731fdcfc86f10fe2349abf43247f4c80f /src/file_sum | |
parent | 1b4f7c40e1a7a27e5e72f8d63f4565acad7fdd72 (diff) |
don't gitignore files when not in a git repository
.gitignore files, including the global one, aren't used anymore
when not in a git repository
Fix #274
Diffstat (limited to 'src/file_sum')
-rw-r--r-- | src/file_sum/sum_computation.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/file_sum/sum_computation.rs b/src/file_sum/sum_computation.rs index ab90549..27fff19 100644 --- a/src/file_sum/sum_computation.rs +++ b/src/file_sum/sum_computation.rs @@ -34,7 +34,8 @@ pub fn compute_dir_sum(path: &Path, dam: &Dam) -> Option<FileSum> { //debug!("compute size of dir {:?} --------------- ", path); lazy_static! { - static ref THREAD_POOL: ThreadPool = ThreadPoolBuilder::new().num_threads(THREADS_COUNT*2).build().unwrap(); + static ref THREAD_POOL: ThreadPool = ThreadPoolBuilder::new() + .num_threads(THREADS_COUNT*2).build().unwrap(); } // to avoid counting twice an inode, we store them in a set |