diff --git a/rust/crates/tools/src/lib.rs b/rust/crates/tools/src/lib.rs index 38beee0a..6a1fdc56 100644 --- a/rust/crates/tools/src/lib.rs +++ b/rust/crates/tools/src/lib.rs @@ -1503,8 +1503,10 @@ fn run_worker_create(input: WorkerCreateInput) -> Result { let merged_roots: Vec = ConfigLoader::default_for(&input.cwd) .load() .ok() - .map(|config| config.trusted_roots_with_overrides(&input.trusted_roots)) - .unwrap_or_else(|| input.trusted_roots.clone()); + .map_or_else( + || input.trusted_roots.clone(), + |config| config.trusted_roots_with_overrides(&input.trusted_roots), + ); let worker = global_worker_registry().create( &input.cwd, &merged_roots,