diff options
author | David Sherret <dsherret@users.noreply.github.com> | 2022-03-23 09:54:22 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-23 09:54:22 -0400 |
commit | 53dac7451bbdd527aa91e01653b678547624fc39 (patch) | |
tree | c43dbc34fd4ada4249064aab2086ab64b276a460 /cli/bench | |
parent | 5edcd9dd355483df6b9a8c34ca94f3f54d672b9e (diff) |
chore: remove all `pub(crate)`s from the cli crate (#14083)
Diffstat (limited to 'cli/bench')
-rw-r--r-- | cli/bench/http.rs | 2 | ||||
-rw-r--r-- | cli/bench/lsp.rs | 4 | ||||
-rw-r--r-- | cli/bench/main.rs | 2 |
3 files changed, 3 insertions, 5 deletions
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<HashMap<String, HttpBenchmarkResult>> { 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<Duration, AnyError> { } /// Generate benchmarks for the LSP server. -pub(crate) fn benchmarks( - deno_exe: &Path, -) -> Result<HashMap<String, u64>, AnyError> { +pub fn benchmarks(deno_exe: &Path) -> Result<HashMap<String, u64>, 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<T> = std::result::Result<T, AnyError>; +pub type Result<T> = std::result::Result<T, AnyError>; |