mirror of
https://github.com/denoland/deno.git
synced 2025-08-04 19:08:15 +00:00
refactor: use futures and serde_json from deno_core (#7614)
This commit is contained in:
parent
9d738fc197
commit
92edc36442
52 changed files with 156 additions and 97 deletions
|
@ -12,6 +12,7 @@
|
|||
use crate::ast::DiagnosticBuffer;
|
||||
use crate::import_map::ImportMapError;
|
||||
use deno_core::error::AnyError;
|
||||
use deno_core::serde_json;
|
||||
use deno_core::url;
|
||||
use deno_core::ModuleResolutionError;
|
||||
use deno_fetch::reqwest;
|
||||
|
@ -132,7 +133,7 @@ fn get_request_error_class(error: &reqwest::Error) -> &'static str {
|
|||
fn get_serde_json_error_class(
|
||||
error: &serde_json::error::Error,
|
||||
) -> &'static str {
|
||||
use serde_json::error::*;
|
||||
use deno_core::serde_json::error::*;
|
||||
match error.classify() {
|
||||
Category::Io => error
|
||||
.source()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue