From 53dac7451bbdd527aa91e01653b678547624fc39 Mon Sep 17 00:00:00 2001 From: David Sherret Date: Wed, 23 Mar 2022 09:54:22 -0400 Subject: chore: remove all `pub(crate)`s from the cli crate (#14083) --- cli/bench/http.rs | 2 +- cli/bench/lsp.rs | 4 +--- cli/bench/main.rs | 2 +- 3 files changed, 3 insertions(+), 5 deletions(-) (limited to 'cli/bench') diff --git a/cli/bench/http.rs b/cli/bench/http.rs index 72edb487c..b000bc285 100644 --- a/cli/bench/http.rs +++ b/cli/bench/http.rs @@ -12,7 +12,7 @@ pub use test_util::{parse_wrk_output, WrkOutput as HttpBenchmarkResult}; const DURATION: &str = "20s"; -pub(crate) fn benchmark( +pub fn benchmark( target_path: &Path, ) -> Result> { let deno_exe = test_util::deno_exe_path(); diff --git a/cli/bench/lsp.rs b/cli/bench/lsp.rs index 2cd89cd13..a7f712d0b 100644 --- a/cli/bench/lsp.rs +++ b/cli/bench/lsp.rs @@ -333,9 +333,7 @@ fn bench_startup_shutdown(deno_exe: &Path) -> Result { } /// Generate benchmarks for the LSP server. -pub(crate) fn benchmarks( - deno_exe: &Path, -) -> Result, AnyError> { +pub fn benchmarks(deno_exe: &Path) -> Result, AnyError> { println!("-> Start benchmarking lsp"); let mut exec_times = HashMap::new(); diff --git a/cli/bench/main.rs b/cli/bench/main.rs index 9571be72a..0149fb002 100644 --- a/cli/bench/main.rs +++ b/cli/bench/main.rs @@ -504,4 +504,4 @@ fn main() -> Result<()> { Ok(()) } -pub(crate) type Result = std::result::Result; +pub type Result = std::result::Result; -- cgit v1.2.3