summaryrefslogtreecommitdiff
path: root/cli/ops/fetch.rs
diff options
context:
space:
mode:
Diffstat (limited to 'cli/ops/fetch.rs')
-rw-r--r--cli/ops/fetch.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/cli/ops/fetch.rs b/cli/ops/fetch.rs
index cbfcfb874..54585dc3d 100644
--- a/cli/ops/fetch.rs
+++ b/cli/ops/fetch.rs
@@ -1,12 +1,12 @@
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
-use crate::state::CliState;
+use crate::permissions::Permissions;
pub fn init(rt: &mut deno_core::JsRuntime) {
- super::reg_json_async(rt, "op_fetch", deno_fetch::op_fetch::<CliState>);
+ super::reg_json_async(rt, "op_fetch", deno_fetch::op_fetch::<Permissions>);
super::reg_json_async(rt, "op_fetch_read", deno_fetch::op_fetch_read);
super::reg_json_sync(
rt,
"op_create_http_client",
- deno_fetch::op_create_http_client::<CliState>,
+ deno_fetch::op_create_http_client::<Permissions>,
);
}