summaryrefslogtreecommitdiff
path: root/ext/net
diff options
context:
space:
mode:
authorAaron O'Mullan <aaron.omullan@gmail.com>2022-03-15 23:43:17 +0100
committerGitHub <noreply@github.com>2022-03-15 23:43:17 +0100
commitbb53135ed87ec063c9238e1b7de8cf3b44535685 (patch)
tree76dfbbfedf1de3482b1d179c46aa855bc6a8e544 /ext/net
parent5d60ee7f1280d8000b918e7fb9e11e3ddca779e7 (diff)
cleanup(core): OpPair => OpDecl (#13952)
Diffstat (limited to 'ext/net')
-rw-r--r--ext/net/ops.rs4
-rw-r--r--ext/net/ops_tls.rs4
2 files changed, 4 insertions, 4 deletions
diff --git a/ext/net/ops.rs b/ext/net/ops.rs
index 1cd3ad8e6..0167448dd 100644
--- a/ext/net/ops.rs
+++ b/ext/net/ops.rs
@@ -15,7 +15,7 @@ use deno_core::AsyncRefCell;
use deno_core::ByteString;
use deno_core::CancelHandle;
use deno_core::CancelTryFuture;
-use deno_core::OpPair;
+use deno_core::OpDecl;
use deno_core::OpState;
use deno_core::RcRef;
use deno_core::Resource;
@@ -50,7 +50,7 @@ use crate::io::UnixStreamResource;
#[cfg(unix)]
use std::path::Path;
-pub fn init<P: NetPermissions + 'static>() -> Vec<OpPair> {
+pub fn init<P: NetPermissions + 'static>() -> Vec<OpDecl> {
vec![
op_net_accept::decl(),
op_net_connect::decl::<P>(),
diff --git a/ext/net/ops_tls.rs b/ext/net/ops_tls.rs
index fea59cc22..05e007176 100644
--- a/ext/net/ops_tls.rs
+++ b/ext/net/ops_tls.rs
@@ -33,7 +33,7 @@ use deno_core::AsyncResult;
use deno_core::ByteString;
use deno_core::CancelHandle;
use deno_core::CancelTryFuture;
-use deno_core::OpPair;
+use deno_core::OpDecl;
use deno_core::OpState;
use deno_core::RcRef;
use deno_core::Resource;
@@ -642,7 +642,7 @@ impl Write for ImplementWriteTrait<'_, TcpStream> {
}
}
-pub fn init<P: NetPermissions + 'static>() -> Vec<OpPair> {
+pub fn init<P: NetPermissions + 'static>() -> Vec<OpDecl> {
vec![
op_tls_start::decl::<P>(),
op_tls_connect::decl::<P>(),