summaryrefslogtreecommitdiff
path: root/ext/net/ops.rs
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/ops.rs
parent8829a1d3620cab23f7ac724feeae60c9de6ebad2 (diff)
chore: upgrade to Rust 1.70.0 (#19345)
Co-authored-by: linbingquan <695601626@qq.com>
Diffstat (limited to 'ext/net/ops.rs')
-rw-r--r--ext/net/ops.rs42
1 files changed, 12 insertions, 30 deletions
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