chore: upgrade to rust 1.80 (#24778)

This commit is contained in:
Satya Rohith 2024-07-29 22:28:04 +05:30 committed by GitHub
parent 8bab761bcc
commit 8c2f1f5a55
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
18 changed files with 34 additions and 44 deletions

View file

@ -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::<ResolutionError>()
.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")
}