refactor(cli): remove Clone on ProcState (#18874)

Slowly phasing this out.
This commit is contained in:
David Sherret 2023-04-30 16:51:31 -04:00 committed by GitHub
parent 96e214d9d0
commit 9a9473533e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 84 additions and 110 deletions

View file

@ -225,7 +225,9 @@ impl TestRun {
let permissions =
Permissions::from_options(&ps.options.permissions_options())?;
test::check_specifiers(
&ps,
&ps.options,
&ps.file_fetcher,
&ps.module_load_preparer,
self
.queue
.iter()
@ -257,7 +259,7 @@ impl TestRun {
let tests: Arc<RwLock<IndexMap<usize, test::TestDescription>>> =
Arc::new(RwLock::new(IndexMap::new()));
let mut test_steps = IndexMap::new();
let worker_factory = Arc::new(ps.into_cli_main_worker_factory());
let worker_factory = Arc::new(ps.create_cli_main_worker_factory());
let join_handles = queue.into_iter().map(move |specifier| {
let specifier = specifier.clone();