diff options
author | orvit <cdavis4short@gmail.com> | 2022-07-14 16:52:44 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-15 07:52:44 +1000 |
commit | dbf5e95b59656b05f28218a27d128cae9fd68342 (patch) | |
tree | a5aa4d6cde6f39c2439036eb73243c46d2a6a63e /cli/main.rs | |
parent | 1a7259b04b7229f6350a7a7c21b50497b5c80c17 (diff) |
refactor: remove redundant qualification of symbols in Rust (#15201)
Diffstat (limited to 'cli/main.rs')
-rw-r--r-- | cli/main.rs | 40 |
1 files changed, 18 insertions, 22 deletions
diff --git a/cli/main.rs b/cli/main.rs index 2cdd65ed2..55416e0e4 100644 --- a/cli/main.rs +++ b/cli/main.rs @@ -175,7 +175,7 @@ fn create_web_worker_callback( source_map_getter: Some(Box::new(ps.clone())), worker_type: args.worker_type, maybe_inspector_server, - get_error_class_fn: Some(&crate::errors::get_error_class_name), + get_error_class_fn: Some(&errors::get_error_class_name), blob_store: ps.blob_store.clone(), broadcast_channel: ps.broadcast_channel.clone(), shared_array_buffer_store: Some(ps.shared_array_buffer_store.clone()), @@ -255,7 +255,7 @@ pub fn create_main_worker( maybe_inspector_server, should_break_on_first_statement, module_loader, - get_error_class_fn: Some(&crate::errors::get_error_class_name), + get_error_class_fn: Some(&errors::get_error_class_name), origin_storage_dir, blob_store: ps.blob_store.clone(), broadcast_channel: ps.broadcast_channel.clone(), @@ -363,23 +363,23 @@ fn print_cache_info( pub fn get_types(unstable: bool) -> String { let mut types = vec![ - crate::tsc::DENO_NS_LIB, - crate::tsc::DENO_CONSOLE_LIB, - crate::tsc::DENO_URL_LIB, - crate::tsc::DENO_WEB_LIB, - crate::tsc::DENO_FETCH_LIB, - crate::tsc::DENO_WEBGPU_LIB, - crate::tsc::DENO_WEBSOCKET_LIB, - crate::tsc::DENO_WEBSTORAGE_LIB, - crate::tsc::DENO_CRYPTO_LIB, - crate::tsc::DENO_BROADCAST_CHANNEL_LIB, - crate::tsc::DENO_NET_LIB, - crate::tsc::SHARED_GLOBALS_LIB, - crate::tsc::WINDOW_LIB, + tsc::DENO_NS_LIB, + tsc::DENO_CONSOLE_LIB, + tsc::DENO_URL_LIB, + tsc::DENO_WEB_LIB, + tsc::DENO_FETCH_LIB, + tsc::DENO_WEBGPU_LIB, + tsc::DENO_WEBSOCKET_LIB, + tsc::DENO_WEBSTORAGE_LIB, + tsc::DENO_CRYPTO_LIB, + tsc::DENO_BROADCAST_CHANNEL_LIB, + tsc::DENO_NET_LIB, + tsc::SHARED_GLOBALS_LIB, + tsc::WINDOW_LIB, ]; if unstable { - types.push(crate::tsc::UNSTABLE_NS_LIB); + types.push(tsc::UNSTABLE_NS_LIB); } types.join("\n") @@ -1317,13 +1317,9 @@ fn setup_panic_hook() { eprintln!("reproduction steps and re-run with the RUST_BACKTRACE=1 env"); eprintln!("var set and include the backtrace in your report."); eprintln!(); - eprintln!( - "Platform: {} {}", - std::env::consts::OS, - std::env::consts::ARCH - ); + eprintln!("Platform: {} {}", env::consts::OS, env::consts::ARCH); eprintln!("Version: {}", version::deno()); - eprintln!("Args: {:?}", std::env::args().collect::<Vec<_>>()); + eprintln!("Args: {:?}", env::args().collect::<Vec<_>>()); eprintln!(); orig_hook(panic_info); std::process::exit(1); |