mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-01 07:41:12 +00:00
remove unneeded argument
This commit is contained in:
parent
b75880bed2
commit
b3c0fa63d3
1 changed files with 2 additions and 13 deletions
|
@ -1092,8 +1092,6 @@ where
|
||||||
let mut worker_listeners =
|
let mut worker_listeners =
|
||||||
bumpalo::collections::Vec::with_capacity_in(num_workers, arena);
|
bumpalo::collections::Vec::with_capacity_in(num_workers, arena);
|
||||||
|
|
||||||
let stdlib_mode = stdlib.mode;
|
|
||||||
|
|
||||||
for worker_arena in it {
|
for worker_arena in it {
|
||||||
let msg_tx = msg_tx.clone();
|
let msg_tx = msg_tx.clone();
|
||||||
let worker = worker_queues.pop().unwrap();
|
let worker = worker_queues.pop().unwrap();
|
||||||
|
@ -1129,13 +1127,7 @@ where
|
||||||
// added. In that case, do nothing, and keep waiting
|
// added. In that case, do nothing, and keep waiting
|
||||||
// until we receive a Shutdown message.
|
// until we receive a Shutdown message.
|
||||||
if let Some(task) = find_task(&worker, injector, stealers) {
|
if let Some(task) = find_task(&worker, injector, stealers) {
|
||||||
run_task(
|
run_task(task, worker_arena, src_dir, msg_tx.clone())
|
||||||
task,
|
|
||||||
worker_arena,
|
|
||||||
src_dir,
|
|
||||||
msg_tx.clone(),
|
|
||||||
stdlib_mode,
|
|
||||||
)
|
|
||||||
.expect("Msg channel closed unexpectedly.");
|
.expect("Msg channel closed unexpectedly.");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -2025,7 +2017,6 @@ fn run_solve<'a>(
|
||||||
module: Module,
|
module: Module,
|
||||||
ident_ids: IdentIds,
|
ident_ids: IdentIds,
|
||||||
mut module_timing: ModuleTiming,
|
mut module_timing: ModuleTiming,
|
||||||
stdlib_mode: Mode,
|
|
||||||
imported_symbols: Vec<Import>,
|
imported_symbols: Vec<Import>,
|
||||||
imported_aliases: MutMap<Symbol, Alias>,
|
imported_aliases: MutMap<Symbol, Alias>,
|
||||||
constraint: Constraint,
|
constraint: Constraint,
|
||||||
|
@ -2589,7 +2580,6 @@ fn run_task<'a>(
|
||||||
arena: &'a Bump,
|
arena: &'a Bump,
|
||||||
src_dir: &Path,
|
src_dir: &Path,
|
||||||
msg_tx: MsgSender<'a>,
|
msg_tx: MsgSender<'a>,
|
||||||
stdlib_mode: Mode,
|
|
||||||
) -> Result<(), LoadingProblem> {
|
) -> Result<(), LoadingProblem> {
|
||||||
use BuildTask::*;
|
use BuildTask::*;
|
||||||
|
|
||||||
|
@ -2629,7 +2619,6 @@ fn run_task<'a>(
|
||||||
module,
|
module,
|
||||||
ident_ids,
|
ident_ids,
|
||||||
module_timing,
|
module_timing,
|
||||||
stdlib_mode,
|
|
||||||
imported_symbols,
|
imported_symbols,
|
||||||
imported_aliases,
|
imported_aliases,
|
||||||
constraint,
|
constraint,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue