summaryrefslogtreecommitdiff
path: root/ext/net
diff options
context:
space:
mode:
authorDavid Sherret <dsherret@users.noreply.github.com>2023-06-05 20:35:39 -0400
committerGitHub <noreply@github.com>2023-06-06 00:35:39 +0000
commit5c55f2b4fb9f386d5589e4cbd4c513ecb1bae50b (patch)
treeaeffd55113b13518b28116f3048aaff572e4cae5 /ext/net
parent8829a1d3620cab23f7ac724feeae60c9de6ebad2 (diff)
chore: upgrade to Rust 1.70.0 (#19345)
Co-authored-by: linbingquan <695601626@qq.com>
Diffstat (limited to 'ext/net')
-rw-r--r--ext/net/lib.rs12
-rw-r--r--ext/net/ops.rs42
2 files changed, 18 insertions, 36 deletions
diff --git a/ext/net/lib.rs b/ext/net/lib.rs
index 912b0723e..0e3778d5a 100644
--- a/ext/net/lib.rs
+++ b/ext/net/lib.rs
@@ -98,12 +98,12 @@ deno_core::extension!(deno_net,
ops::op_node_unstable_net_listen_udp<P>,
ops::op_net_recv_udp,
ops::op_net_send_udp<P>,
- ops::op_net_join_multi_v4_udp<P>,
- ops::op_net_join_multi_v6_udp<P>,
- ops::op_net_leave_multi_v4_udp<P>,
- ops::op_net_leave_multi_v6_udp<P>,
- ops::op_net_set_multi_loopback_udp<P>,
- ops::op_net_set_multi_ttl_udp<P>,
+ ops::op_net_join_multi_v4_udp,
+ ops::op_net_join_multi_v6_udp,
+ ops::op_net_leave_multi_v4_udp,
+ ops::op_net_leave_multi_v6_udp,
+ ops::op_net_set_multi_loopback_udp,
+ ops::op_net_set_multi_ttl_udp,
ops::op_dns_resolve<P>,
ops::op_set_nodelay,
ops::op_set_keepalive,
diff --git a/ext/net/ops.rs b/ext/net/ops.rs
index 2264df867..05aa416b4 100644
--- a/ext/net/ops.rs
+++ b/ext/net/ops.rs
@@ -159,15 +159,12 @@ where
}
#[op]
-async fn op_net_join_multi_v4_udp<NP>(
+async fn op_net_join_multi_v4_udp(
state: Rc<RefCell<OpState>>,
rid: ResourceId,
address: String,
multi_interface: String,
-) -> Result<(), AnyError>
-where
- NP: NetPermissions + 'static,
-{
+) -> Result<(), AnyError> {
let resource = state
.borrow_mut()
.resource_table
@@ -184,15 +181,12 @@ where
}
#[op]
-async fn op_net_join_multi_v6_udp<NP>(
+async fn op_net_join_multi_v6_udp(
state: Rc<RefCell<OpState>>,
rid: ResourceId,
address: String,
multi_interface: u32,
-) -> Result<(), AnyError>
-where
- NP: NetPermissions + 'static,
-{
+) -> Result<(), AnyError> {
let resource = state
.borrow_mut()
.resource_table
@@ -208,15 +202,12 @@ where
}
#[op]
-async fn op_net_leave_multi_v4_udp<NP>(
+async fn op_net_leave_multi_v4_udp(
state: Rc<RefCell<OpState>>,
rid: ResourceId,
address: String,
multi_interface: String,
-) -> Result<(), AnyError>
-where
- NP: NetPermissions + 'static,
-{
+) -> Result<(), AnyError> {
let resource = state
.borrow_mut()
.resource_table
@@ -233,15 +224,12 @@ where
}
#[op]
-async fn op_net_leave_multi_v6_udp<NP>(
+async fn op_net_leave_multi_v6_udp(
state: Rc<RefCell<OpState>>,
rid: ResourceId,
address: String,
multi_interface: u32,
-) -> Result<(), AnyError>
-where
- NP: NetPermissions + 'static,
-{
+) -> Result<(), AnyError> {
let resource = state
.borrow_mut()
.resource_table
@@ -257,15 +245,12 @@ where
}
#[op]
-async fn op_net_set_multi_loopback_udp<NP>(
+async fn op_net_set_multi_loopback_udp(
state: Rc<RefCell<OpState>>,
rid: ResourceId,
is_v4_membership: bool,
loopback: bool,
-) -> Result<(), AnyError>
-where
- NP: NetPermissions + 'static,
-{
+) -> Result<(), AnyError> {
let resource = state
.borrow_mut()
.resource_table
@@ -283,14 +268,11 @@ where
}
#[op]
-async fn op_net_set_multi_ttl_udp<NP>(
+async fn op_net_set_multi_ttl_udp(
state: Rc<RefCell<OpState>>,
rid: ResourceId,
ttl: u32,
-) -> Result<(), AnyError>
-where
- NP: NetPermissions + 'static,
-{
+) -> Result<(), AnyError> {
let resource = state
.borrow_mut()
.resource_table