summaryrefslogtreecommitdiff
path: root/core/error.rs
diff options
context:
space:
mode:
Diffstat (limited to 'core/error.rs')
-rw-r--r--core/error.rs16
1 files changed, 9 insertions, 7 deletions
diff --git a/core/error.rs b/core/error.rs
index d788e14b5..02ed95ef7 100644
--- a/core/error.rs
+++ b/core/error.rs
@@ -1,12 +1,5 @@
// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
-use crate::runtime::GetErrorClassFn;
-use crate::runtime::JsRealm;
-use crate::runtime::JsRuntime;
-use crate::source_map::apply_source_map;
-use crate::source_map::get_source_line;
-use crate::url::Url;
-use anyhow::Error;
use std::borrow::Cow;
use std::collections::HashSet;
use std::fmt;
@@ -14,6 +7,15 @@ use std::fmt::Debug;
use std::fmt::Display;
use std::fmt::Formatter;
+use anyhow::Error;
+
+use crate::runtime::GetErrorClassFn;
+use crate::runtime::JsRealm;
+use crate::runtime::JsRuntime;
+use crate::source_map::apply_source_map;
+use crate::source_map::get_source_line;
+use crate::url::Url;
+
/// A generic wrapper that can encapsulate any concrete error type.
// TODO(ry) Deprecate AnyError and encourage deno_core::anyhow::Error instead.
pub type AnyError = anyhow::Error;