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/errors.rs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'cli/errors.rs') diff --git a/cli/errors.rs b/cli/errors.rs index 1ae6559fe..fbf9da8e0 100644 --- a/cli/errors.rs +++ b/cli/errors.rs @@ -29,9 +29,7 @@ fn get_graph_error_class(err: &GraphError) -> &'static str { get_module_graph_error_class(&err.0) } -pub(crate) fn get_module_graph_error_class( - err: &ModuleGraphError, -) -> &'static str { +pub fn get_module_graph_error_class(err: &ModuleGraphError) -> &'static str { match err { ModuleGraphError::LoadingErr(_, err) => get_error_class_name(err.as_ref()), ModuleGraphError::InvalidSource(_, _) @@ -55,7 +53,7 @@ fn get_resolution_error_class(err: &ResolutionError) -> &'static str { } } -pub(crate) fn get_error_class_name(e: &AnyError) -> &'static str { +pub fn get_error_class_name(e: &AnyError) -> &'static str { deno_runtime::errors::get_error_class_name(e) .or_else(|| { e.downcast_ref::() -- cgit v1.2.3