From 345299b682a2ca9a93afd1581745b505f2a08f5a Mon Sep 17 00:00:00 2001 From: khai96_ Date: Wed, 18 Oct 2023 13:46:07 +0700 Subject: [PATCH] refactor: rename --- tasks/integrated-benchmark/src/work_env.rs | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/tasks/integrated-benchmark/src/work_env.rs b/tasks/integrated-benchmark/src/work_env.rs index ca3c8e5a6..b3308beea 100644 --- a/tasks/integrated-benchmark/src/work_env.rs +++ b/tasks/integrated-benchmark/src/work_env.rs @@ -54,7 +54,7 @@ impl WorkEnv { self.root().join(id.to_string()) } - fn sub_install_script(&self, id: BenchId) -> PathBuf { + fn script_path(&self, id: BenchId) -> PathBuf { self.bench_dir(id).join("install.bash") } @@ -99,9 +99,7 @@ impl WorkEnv { } eprintln!("Populating proxy registry cache..."); - self.sub_install_script(WorkEnv::INIT_PROXY_CACHE) - .pipe(Command::new) - .pipe_mut(executor("install.bash")) + self.script_path(WorkEnv::INIT_PROXY_CACHE).pipe(Command::new).pipe_mut(executor("install.bash")) } fn build(&self) { @@ -166,7 +164,7 @@ impl WorkEnv { self.hyperfine_options.append_to(&mut command); for id in self.revision_ids().chain(self.with_pnpm.then_some(WorkEnv::PNPM)) { - command.arg("--command-name").arg(id.to_string()).arg(self.sub_install_script(id)); + command.arg("--command-name").arg(id.to_string()).arg(self.script_path(id)); } command