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()
|
rayon::ThreadPoolBuilder::new()
|
||||||
.stack_size(usize::pow(1024, 3))
|
.stack_size(usize::pow(1024, 3))
|
||||||
.build_global()
|
.build_global()
|
||||||
.unwrap();
|
.unwrap_or_else(|e| eprintln!("Warning: Could not configure threads {:?}", e));
|
||||||
|
|
||||||
let iso = config.get_iso(&options);
|
let iso = config.get_iso(&options);
|
||||||
let (top_level_nodes, has_errors) = walk_it(simplified_dirs, walk_data);
|
let (top_level_nodes, has_errors) = walk_it(simplified_dirs, walk_data);
|
||||||
|
|||||||
Reference in New Issue
Block a user