mirror of
https://github.com/bootandy/dust.git
synced 2026-06-08 11:29:05 +03:00
Fix: Warn if configuring threads fails
User reported this unwrap could fail, so log an error instead of using a naked unwrap.
This commit is contained in:
+1
-1
@@ -158,7 +158,7 @@ fn main() {
|
||||
rayon::ThreadPoolBuilder::new()
|
||||
.stack_size(usize::pow(1024, 3))
|
||||
.build_global()
|
||||
.unwrap();
|
||||
.unwrap_or_else(|e| eprintln!("Warning: Could not configure threads {:?}", e));
|
||||
|
||||
let iso = config.get_iso(&options);
|
||||
let (top_level_nodes, has_errors) = walk_it(simplified_dirs, walk_data);
|
||||
|
||||
Reference in New Issue
Block a user