diff options
author | Aaron O'Mullan <aaron.omullan@gmail.com> | 2022-03-14 23:38:53 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-14 23:38:53 +0100 |
commit | 88d0f01948b68f4a4d87e02a5138e94ac0a6eaea (patch) | |
tree | 2b50e5d2c6990c94f47e604281f3557b3efd9736 /ext/net/ops.rs | |
parent | 9f494dc405afc4b1b29fa4c813bd5751f26aaa36 (diff) |
feat(ops): custom arity (#13949)
Also cleanup & drop ignored wildcard op-args
Diffstat (limited to 'ext/net/ops.rs')
-rw-r--r-- | ext/net/ops.rs | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/ext/net/ops.rs b/ext/net/ops.rs index 2c9129ebf..1cd3ad8e6 100644 --- a/ext/net/ops.rs +++ b/ext/net/ops.rs @@ -162,7 +162,6 @@ async fn accept_tcp( async fn op_net_accept( state: Rc<RefCell<OpState>>, args: AcceptArgs, - _: (), ) -> Result<OpConn, AnyError> { match args.transport.as_str() { "tcp" => accept_tcp(state, args, ()).await, @@ -306,7 +305,6 @@ pub struct ConnectArgs { pub async fn op_net_connect<NP>( state: Rc<RefCell<OpState>>, args: ConnectArgs, - _: (), ) -> Result<OpConn, AnyError> where NP: NetPermissions + 'static, @@ -482,7 +480,6 @@ fn listen_udp( fn op_net_listen<NP>( state: &mut OpState, args: ListenArgs, - _: (), ) -> Result<OpConn, AnyError> where NP: NetPermissions + 'static, @@ -622,7 +619,6 @@ pub struct NameServer { pub async fn op_dns_resolve<NP>( state: Rc<RefCell<OpState>>, args: ResolveAddrArgs, - _: (), ) -> Result<Vec<DnsReturnRecord>, AnyError> where NP: NetPermissions + 'static, @@ -942,7 +938,7 @@ mod tests { }; let connect_fut = - op_net_connect::call::<TestPermission>(conn_state, connect_args, ()); + op_net_connect::call::<TestPermission>(conn_state, connect_args); let conn = connect_fut.await.unwrap(); let rid = conn.rid; |