From d5f39fd121b8f997dcfb360828f60cee47322ab3 Mon Sep 17 00:00:00 2001 From: Aaron O'Mullan Date: Sat, 8 May 2021 14:37:42 +0200 Subject: cleanup(ops): remove unused ZeroCopyBuf arg-types (#10530) --- runtime/ops/net.rs | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'runtime/ops/net.rs') diff --git a/runtime/ops/net.rs b/runtime/ops/net.rs index f7c8eeac4..c9195aab7 100644 --- a/runtime/ops/net.rs +++ b/runtime/ops/net.rs @@ -100,7 +100,7 @@ pub(crate) struct AcceptArgs { async fn accept_tcp( state: Rc>, args: AcceptArgs, - _zero_copy: Option, + _: (), ) -> Result { let rid = args.rid; @@ -145,12 +145,12 @@ async fn accept_tcp( async fn op_accept( state: Rc>, args: AcceptArgs, - _buf: Option, + _: (), ) -> Result { match args.transport.as_str() { - "tcp" => accept_tcp(state, args, _buf).await, + "tcp" => accept_tcp(state, args, ()).await, #[cfg(unix)] - "unix" => net_unix::accept_unix(state, args, _buf).await, + "unix" => net_unix::accept_unix(state, args, ()).await, other => Err(bad_transport(other)), } } @@ -288,7 +288,7 @@ struct ConnectArgs { async fn op_connect( state: Rc>, args: ConnectArgs, - _zero_copy: Option, + _: (), ) -> Result { match args { ConnectArgs { @@ -454,7 +454,7 @@ fn listen_udp( fn op_listen( state: &mut OpState, args: ListenArgs, - _zero_copy: Option, + _: (), ) -> Result { match args { ListenArgs { @@ -595,7 +595,7 @@ pub struct NameServer { async fn op_dns_resolve( state: Rc>, args: ResolveAddrArgs, - _zero_copy: Option, + _: (), ) -> Result, AnyError> { let ResolveAddrArgs { query, -- cgit v1.2.3