summaryrefslogtreecommitdiff
path: root/cli/ops/fetch.rs
diff options
context:
space:
mode:
authorRyan Dahl <ry@tinyclouds.org>2020-04-23 05:51:07 -0400
committerGitHub <noreply@github.com>2020-04-23 11:51:07 +0200
commitd8711155ca20fb2907beed304557d0815ac56452 (patch)
tree410c23ed6d3e520a6b335b02577ad0b29b707cf4 /cli/ops/fetch.rs
parent10a174834e6e59ea055d6098a07b82a3854a2db9 (diff)
Rename deno_core::Isolate to deno_core::CoreIsolate (#4851)
Diffstat (limited to 'cli/ops/fetch.rs')
-rw-r--r--cli/ops/fetch.rs7
1 files changed, 4 insertions, 3 deletions
diff --git a/cli/ops/fetch.rs b/cli/ops/fetch.rs
index 4a7b45430..596c9a2fd 100644
--- a/cli/ops/fetch.rs
+++ b/cli/ops/fetch.rs
@@ -4,14 +4,15 @@ use super::io::{StreamResource, StreamResourceHolder};
use crate::http_util::{create_http_client, HttpBody};
use crate::op_error::OpError;
use crate::state::State;
-use deno_core::*;
+use deno_core::CoreIsolate;
+use deno_core::ZeroCopyBuf;
use futures::future::FutureExt;
use http::header::HeaderName;
use http::header::HeaderValue;
use http::Method;
use std::convert::From;
-pub fn init(i: &mut Isolate, s: &State) {
+pub fn init(i: &mut CoreIsolate, s: &State) {
i.register_op("op_fetch", s.stateful_json_op2(op_fetch));
}
@@ -23,7 +24,7 @@ struct FetchArgs {
}
pub fn op_fetch(
- isolate: &mut deno_core::Isolate,
+ isolate: &mut CoreIsolate,
state: &State,
args: Value,
data: Option<ZeroCopyBuf>,