From 8c2f1f5a55a2a9bb9e04c12236faa341b3fd49b6 Mon Sep 17 00:00:00 2001 From: Satya Rohith Date: Mon, 29 Jul 2024 22:28:04 +0530 Subject: chore: upgrade to rust 1.80 (#24778) --- cli/errors.rs | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) (limited to 'cli/errors.rs') diff --git a/cli/errors.rs b/cli/errors.rs index 9fe433f18..a8fde6e76 100644 --- a/cli/errors.rs +++ b/cli/errors.rs @@ -17,7 +17,6 @@ use deno_graph::ModuleGraphError; use deno_graph::ModuleLoadError; use deno_graph::ResolutionError; use import_map::ImportMapError; -use std::fmt::Write; fn get_import_map_error_class(_: &ImportMapError) -> &'static str { "URIError" @@ -112,17 +111,5 @@ pub fn get_error_class_name(e: &AnyError) -> &'static str { e.downcast_ref::() .map(get_resolution_error_class) }) - .unwrap_or_else(|| { - if cfg!(debug) { - log::warn!( - "Error '{}' contains boxed error of unknown type:{}", - e, - e.chain().fold(String::new(), |mut output, e| { - let _ = write!(output, "\n {e:?}"); - output - }) - ); - } - "Error" - }) + .unwrap_or("Error") } -- cgit v1.2.3