summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
Diffstat (limited to 'ext')
-rw-r--r--ext/broadcast_channel/lib.rs3
-rw-r--r--ext/crypto/generate_key.rs1
-rw-r--r--ext/crypto/lib.rs7
-rw-r--r--ext/fetch/lib.rs2
-rw-r--r--ext/ffi/lib.rs18
-rw-r--r--ext/http/lib.rs4
-rw-r--r--ext/net/ops.rs6
-rw-r--r--ext/net/ops_tls.rs5
-rw-r--r--ext/url/lib.rs1
-rw-r--r--ext/web/blob.rs5
-rw-r--r--ext/web/compression.rs1
-rw-r--r--ext/web/lib.rs11
-rw-r--r--ext/web/message_port.rs3
-rw-r--r--ext/web/timers.rs13
-rw-r--r--ext/webgpu/src/binding.rs3
-rw-r--r--ext/webgpu/src/buffer.rs2
-rw-r--r--ext/webgpu/src/bundle.rs12
-rw-r--r--ext/webgpu/src/command_encoder.rs14
-rw-r--r--ext/webgpu/src/compute_pass.rs11
-rw-r--r--ext/webgpu/src/lib.rs3
-rw-r--r--ext/webgpu/src/pipeline.rs4
-rw-r--r--ext/webgpu/src/queue.rs1
-rw-r--r--ext/webgpu/src/render_pass.rs20
-rw-r--r--ext/webgpu/src/sampler.rs1
-rw-r--r--ext/webgpu/src/shader.rs1
-rw-r--r--ext/webgpu/src/texture.rs2
-rw-r--r--ext/websocket/lib.rs3
-rw-r--r--ext/webstorage/lib.rs3
28 files changed, 5 insertions, 155 deletions
diff --git a/ext/broadcast_channel/lib.rs b/ext/broadcast_channel/lib.rs
index eff57c7df..e228871b9 100644
--- a/ext/broadcast_channel/lib.rs
+++ b/ext/broadcast_channel/lib.rs
@@ -45,8 +45,6 @@ struct Unstable(bool); // --unstable
#[op]
pub fn op_broadcast_subscribe<BC>(
state: &mut OpState,
- _: (),
- _: (),
) -> Result<ResourceId, AnyError>
where
BC: BroadcastChannel + 'static,
@@ -97,7 +95,6 @@ where
pub async fn op_broadcast_recv<BC>(
state: Rc<RefCell<OpState>>,
rid: ResourceId,
- _: (),
) -> Result<Option<Message>, AnyError>
where
BC: BroadcastChannel + 'static,
diff --git a/ext/crypto/generate_key.rs b/ext/crypto/generate_key.rs
index 9fe1b62f4..22f0913ec 100644
--- a/ext/crypto/generate_key.rs
+++ b/ext/crypto/generate_key.rs
@@ -46,7 +46,6 @@ pub enum GenerateKeyOptions {
pub async fn op_crypto_generate_key(
_state: Rc<RefCell<OpState>>,
opts: GenerateKeyOptions,
- _: (),
) -> Result<ZeroCopyBuf, AnyError> {
let fun = || match opts {
GenerateKeyOptions::Rsa {
diff --git a/ext/crypto/lib.rs b/ext/crypto/lib.rs
index 3b33830d3..e45e3d272 100644
--- a/ext/crypto/lib.rs
+++ b/ext/crypto/lib.rs
@@ -115,7 +115,6 @@ pub fn init(maybe_seed: Option<u64>) -> Extension {
pub fn op_crypto_get_random_values(
state: &mut OpState,
mut zero_copy: ZeroCopyBuf,
- _: (),
) -> Result<(), AnyError> {
if zero_copy.len() > 65536 {
return Err(
@@ -791,11 +790,7 @@ impl<'a> TryFrom<rsa::pkcs8::der::asn1::Any<'a>>
}
#[op]
-pub fn op_crypto_random_uuid(
- state: &mut OpState,
- _: (),
- _: (),
-) -> Result<String, AnyError> {
+pub fn op_crypto_random_uuid(state: &mut OpState) -> Result<String, AnyError> {
let maybe_seeded_rng = state.try_borrow_mut::<StdRng>();
let uuid = if let Some(seeded_rng) = maybe_seeded_rng {
let mut bytes = [0u8; 16];
diff --git a/ext/fetch/lib.rs b/ext/fetch/lib.rs
index 7a0c9b16f..59d5f9a6b 100644
--- a/ext/fetch/lib.rs
+++ b/ext/fetch/lib.rs
@@ -369,7 +369,6 @@ pub struct FetchResponse {
pub async fn op_fetch_send(
state: Rc<RefCell<OpState>>,
rid: ResourceId,
- _: (),
) -> Result<FetchResponse, AnyError> {
let request = state
.borrow_mut()
@@ -528,7 +527,6 @@ pub struct CreateHttpClientOptions {
pub fn op_fetch_custom_client<FP>(
state: &mut OpState,
args: CreateHttpClientOptions,
- _: (),
) -> Result<ResourceId, AnyError>
where
FP: FetchPermissions + 'static,
diff --git a/ext/ffi/lib.rs b/ext/ffi/lib.rs
index b4d8712f4..07297071a 100644
--- a/ext/ffi/lib.rs
+++ b/ext/ffi/lib.rs
@@ -465,7 +465,6 @@ pub(crate) fn format_error(e: dlopen::Error, path: String) -> String {
fn op_ffi_load<FP>(
state: &mut deno_core::OpState,
args: FfiLoadArgs,
- _: (),
) -> Result<ResourceId, AnyError>
where
FP: FfiPermissions + 'static,
@@ -652,7 +651,6 @@ fn ffi_call(args: FfiCallArgs, symbol: &Symbol) -> Result<Value, AnyError> {
fn op_ffi_call_ptr(
_state: &mut deno_core::OpState,
args: FfiCallPtrArgs,
- _: (),
) -> Result<Value, AnyError> {
let symbol = args.get_symbol();
ffi_call(args.into(), &symbol)
@@ -662,7 +660,6 @@ fn op_ffi_call_ptr(
async fn op_ffi_call_ptr_nonblocking(
_state: Rc<RefCell<deno_core::OpState>>,
args: FfiCallPtrArgs,
- _: (),
) -> Result<Value, AnyError> {
let symbol = args.get_symbol();
tokio::task::spawn_blocking(move || ffi_call(args.into(), &symbol))
@@ -682,7 +679,6 @@ struct FfiGetArgs {
fn op_ffi_get_static(
state: &mut deno_core::OpState,
args: FfiGetArgs,
- _: (),
) -> Result<Value, AnyError> {
let resource = state
.resource_table
@@ -740,7 +736,6 @@ fn op_ffi_get_static(
fn op_ffi_call(
state: &mut deno_core::OpState,
args: FfiCallArgs,
- _: (),
) -> Result<Value, AnyError> {
let resource = state
.resource_table
@@ -759,7 +754,6 @@ fn op_ffi_call(
async fn op_ffi_call_nonblocking(
state: Rc<RefCell<deno_core::OpState>>,
args: FfiCallArgs,
- _: (),
) -> Result<Value, AnyError> {
let resource = state
.borrow()
@@ -780,7 +774,6 @@ async fn op_ffi_call_nonblocking(
fn op_ffi_ptr_of<FP>(
state: &mut deno_core::OpState,
buf: ZeroCopyBuf,
- _: (),
) -> Result<U32x2, AnyError>
where
FP: FfiPermissions + 'static,
@@ -795,7 +788,6 @@ where
fn op_ffi_buf_copy_into<FP>(
state: &mut deno_core::OpState,
(src, mut dst, len): (U32x2, ZeroCopyBuf, usize),
- _: (),
) -> Result<(), AnyError>
where
FP: FfiPermissions + 'static,
@@ -818,7 +810,6 @@ where
fn op_ffi_cstr_read<FP>(
state: &mut deno_core::OpState,
ptr: U32x2,
- _: (),
) -> Result<String, AnyError>
where
FP: FfiPermissions + 'static,
@@ -834,7 +825,6 @@ where
fn op_ffi_read_u8<FP>(
state: &mut deno_core::OpState,
ptr: U32x2,
- _: (),
) -> Result<u8, AnyError>
where
FP: FfiPermissions + 'static,
@@ -849,7 +839,6 @@ where
fn op_ffi_read_i8<FP>(
state: &mut deno_core::OpState,
ptr: U32x2,
- _: (),
) -> Result<i8, AnyError>
where
FP: FfiPermissions + 'static,
@@ -864,7 +853,6 @@ where
fn op_ffi_read_u16<FP>(
state: &mut deno_core::OpState,
ptr: U32x2,
- _: (),
) -> Result<u16, AnyError>
where
FP: FfiPermissions + 'static,
@@ -879,7 +867,6 @@ where
fn op_ffi_read_i16<FP>(
state: &mut deno_core::OpState,
ptr: U32x2,
- _: (),
) -> Result<i16, AnyError>
where
FP: FfiPermissions + 'static,
@@ -894,7 +881,6 @@ where
fn op_ffi_read_u32<FP>(
state: &mut deno_core::OpState,
ptr: U32x2,
- _: (),
) -> Result<u32, AnyError>
where
FP: FfiPermissions + 'static,
@@ -909,7 +895,6 @@ where
fn op_ffi_read_i32<FP>(
state: &mut deno_core::OpState,
ptr: U32x2,
- _: (),
) -> Result<i32, AnyError>
where
FP: FfiPermissions + 'static,
@@ -924,7 +909,6 @@ where
fn op_ffi_read_u64<FP>(
state: &mut deno_core::OpState,
ptr: U32x2,
- _: (),
) -> Result<U32x2, AnyError>
where
FP: FfiPermissions + 'static,
@@ -941,7 +925,6 @@ where
fn op_ffi_read_f32<FP>(
state: &mut deno_core::OpState,
ptr: U32x2,
- _: (),
) -> Result<f32, AnyError>
where
FP: FfiPermissions + 'static,
@@ -956,7 +939,6 @@ where
fn op_ffi_read_f64<FP>(
state: &mut deno_core::OpState,
ptr: U32x2,
- _: (),
) -> Result<f64, AnyError>
where
FP: FfiPermissions + 'static,
diff --git a/ext/http/lib.rs b/ext/http/lib.rs
index a89c7a4a1..f57132555 100644
--- a/ext/http/lib.rs
+++ b/ext/http/lib.rs
@@ -369,7 +369,6 @@ struct NextRequestResponse(
async fn op_http_accept(
state: Rc<RefCell<OpState>>,
rid: ResourceId,
- _: (),
) -> Result<Option<NextRequestResponse>, AnyError> {
let conn = state.borrow().resource_table.get::<HttpConnResource>(rid)?;
@@ -738,7 +737,6 @@ async fn op_http_write(
async fn op_http_shutdown(
state: Rc<RefCell<OpState>>,
rid: ResourceId,
- _: (),
) -> Result<(), AnyError> {
let stream = state
.borrow()
@@ -802,7 +800,6 @@ async fn op_http_read(
fn op_http_websocket_accept_header(
_: &mut OpState,
key: String,
- _: (),
) -> Result<String, AnyError> {
let digest = ring::digest::digest(
&ring::digest::SHA1_FOR_LEGACY_USE_ONLY,
@@ -815,7 +812,6 @@ fn op_http_websocket_accept_header(
async fn op_http_upgrade_websocket(
state: Rc<RefCell<OpState>>,
rid: ResourceId,
- _: (),
) -> Result<ResourceId, AnyError> {
let stream = state
.borrow_mut()
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;
diff --git a/ext/net/ops_tls.rs b/ext/net/ops_tls.rs
index 6289d963f..fea59cc22 100644
--- a/ext/net/ops_tls.rs
+++ b/ext/net/ops_tls.rs
@@ -769,7 +769,6 @@ pub struct StartTlsArgs {
pub async fn op_tls_start<NP>(
state: Rc<RefCell<OpState>>,
args: StartTlsArgs,
- _: (),
) -> Result<OpConn, AnyError>
where
NP: NetPermissions + 'static,
@@ -862,7 +861,6 @@ where
pub async fn op_tls_connect<NP>(
state: Rc<RefCell<OpState>>,
args: ConnectTlsArgs,
- _: (),
) -> Result<OpConn, AnyError>
where
NP: NetPermissions + 'static,
@@ -1022,7 +1020,6 @@ pub struct ListenTlsArgs {
pub fn op_tls_listen<NP>(
state: &mut OpState,
args: ListenTlsArgs,
- _: (),
) -> Result<OpConn, AnyError>
where
NP: NetPermissions + 'static,
@@ -1119,7 +1116,6 @@ where
pub async fn op_tls_accept(
state: Rc<RefCell<OpState>>,
rid: ResourceId,
- _: (),
) -> Result<OpConn, AnyError> {
let resource = state
.borrow()
@@ -1171,7 +1167,6 @@ pub async fn op_tls_accept(
pub async fn op_tls_handshake(
state: Rc<RefCell<OpState>>,
rid: ResourceId,
- _: (),
) -> Result<TlsHandshakeInfo, AnyError> {
let resource = state
.borrow()
diff --git a/ext/url/lib.rs b/ext/url/lib.rs
index a82b3e702..4187b7664 100644
--- a/ext/url/lib.rs
+++ b/ext/url/lib.rs
@@ -184,7 +184,6 @@ pub fn op_url_parse_search_params(
pub fn op_url_stringify_search_params(
_state: &mut deno_core::OpState,
args: Vec<(String, String)>,
- _: (),
) -> Result<String, AnyError> {
let search = form_urlencoded::Serializer::new(String::new())
.extend_pairs(args)
diff --git a/ext/web/blob.rs b/ext/web/blob.rs
index ad7f6c582..43121ee3a 100644
--- a/ext/web/blob.rs
+++ b/ext/web/blob.rs
@@ -163,7 +163,6 @@ impl BlobPart for SlicedBlobPart {
pub fn op_blob_create_part(
state: &mut deno_core::OpState,
data: ZeroCopyBuf,
- _: (),
) -> Result<Uuid, AnyError> {
let blob_store = state.borrow::<BlobStore>();
let part = InMemoryBlobPart(data.to_vec());
@@ -208,7 +207,6 @@ pub fn op_blob_slice_part(
pub async fn op_blob_read_part(
state: Rc<RefCell<deno_core::OpState>>,
id: Uuid,
- _: (),
) -> Result<ZeroCopyBuf, AnyError> {
let part = {
let state = state.borrow();
@@ -224,7 +222,6 @@ pub async fn op_blob_read_part(
pub fn op_blob_remove_part(
state: &mut deno_core::OpState,
id: Uuid,
- _: (),
) -> Result<(), AnyError> {
let blob_store = state.borrow::<BlobStore>();
blob_store.remove_part(&id);
@@ -261,7 +258,6 @@ pub fn op_blob_create_object_url(
pub fn op_blob_revoke_object_url(
state: &mut deno_core::OpState,
url: String,
- _: (),
) -> Result<(), AnyError> {
let url = Url::parse(&url)?;
let blob_store = state.borrow::<BlobStore>();
@@ -285,7 +281,6 @@ pub struct ReturnBlobPart {
pub fn op_blob_from_object_url(
state: &mut deno_core::OpState,
url: String,
- _: (),
) -> Result<Option<ReturnBlob>, AnyError> {
let url = Url::parse(&url)?;
if url.scheme() != "blob" {
diff --git a/ext/web/compression.rs b/ext/web/compression.rs
index d38f65d6a..f5ee38257 100644
--- a/ext/web/compression.rs
+++ b/ext/web/compression.rs
@@ -93,7 +93,6 @@ pub fn op_compression_write(
pub fn op_compression_finish(
state: &mut OpState,
rid: ResourceId,
- _: (),
) -> Result<ZeroCopyBuf, AnyError> {
let resource = state.resource_table.take::<CompressionResource>(rid)?;
let resource = Rc::try_unwrap(resource).unwrap();
diff --git a/ext/web/lib.rs b/ext/web/lib.rs
index 6c278cbb0..17133e156 100644
--- a/ext/web/lib.rs
+++ b/ext/web/lib.rs
@@ -123,7 +123,6 @@ pub fn init<P: TimersPermission + 'static>(
fn op_base64_decode(
_: &mut OpState,
input: String,
- _: (),
) -> Result<ZeroCopyBuf, AnyError> {
let mut input = input.into_bytes();
input.retain(|c| !c.is_ascii_whitespace());
@@ -134,7 +133,6 @@ fn op_base64_decode(
fn op_base64_atob(
_: &mut OpState,
s: ByteString,
- _: (),
) -> Result<ByteString, AnyError> {
let mut s = s.0;
s.retain(|c| !c.is_ascii_whitespace());
@@ -188,17 +186,12 @@ fn b64_decode(input: &[u8]) -> Result<Vec<u8>, AnyError> {
fn op_base64_encode(
_: &mut OpState,
s: ZeroCopyBuf,
- _: (),
) -> Result<String, AnyError> {
Ok(b64_encode(&s))
}
#[op]
-fn op_base64_btoa(
- _: &mut OpState,
- s: ByteString,
- _: (),
-) -> Result<String, AnyError> {
+fn op_base64_btoa(_: &mut OpState, s: ByteString) -> Result<String, AnyError> {
Ok(b64_encode(&s))
}
@@ -220,7 +213,6 @@ struct DecoderOptions {
fn op_encoding_normalize_label(
_state: &mut OpState,
label: String,
- _: (),
) -> Result<String, AnyError> {
let encoding = Encoding::for_label_no_replacement(label.as_bytes())
.ok_or_else(|| {
@@ -236,7 +228,6 @@ fn op_encoding_normalize_label(
fn op_encoding_new_decoder(
state: &mut OpState,
options: DecoderOptions,
- _: (),
) -> Result<ResourceId, AnyError> {
let DecoderOptions {
label,
diff --git a/ext/web/message_port.rs b/ext/web/message_port.rs
index 7f2b18b3c..b193e6b9b 100644
--- a/ext/web/message_port.rs
+++ b/ext/web/message_port.rs
@@ -109,8 +109,6 @@ impl Resource for MessagePortResource {
#[op]
pub fn op_message_port_create_entangled(
state: &mut OpState,
- _: (),
- _: (),
) -> Result<(ResourceId, ResourceId), AnyError> {
let (port1, port2) = create_entangled_message_port();
@@ -211,7 +209,6 @@ pub fn op_message_port_post_message(
pub async fn op_message_port_recv_message(
state: Rc<RefCell<OpState>>,
rid: ResourceId,
- _: (),
) -> Result<Option<JsMessageData>, AnyError> {
let resource = {
let state = state.borrow();
diff --git a/ext/web/timers.rs b/ext/web/timers.rs
index 9a78240f7..670df3582 100644
--- a/ext/web/timers.rs
+++ b/ext/web/timers.rs
@@ -28,11 +28,7 @@ pub type StartTime = Instant;
// If the High precision flag is not set, the
// nanoseconds are rounded on 2ms.
#[op]
-pub fn op_now<TP>(
- state: &mut OpState,
- _argument: (),
- _: (),
-) -> Result<f64, AnyError>
+pub fn op_now<TP>(state: &mut OpState, _argument: ()) -> Result<f64, AnyError>
where
TP: TimersPermission + 'static,
{
@@ -68,11 +64,7 @@ impl Resource for TimerHandle {
/// Creates a [`TimerHandle`] resource that can be used to cancel invocations of
/// [`op_sleep`].
#[op]
-pub fn op_timer_handle(
- state: &mut OpState,
- _: (),
- _: (),
-) -> Result<ResourceId, AnyError> {
+pub fn op_timer_handle(state: &mut OpState) -> Result<ResourceId, AnyError> {
let rid = state
.resource_table
.add(TimerHandle(CancelHandle::new_rc()));
@@ -98,7 +90,6 @@ pub async fn op_sleep(
pub fn op_sleep_sync<TP>(
state: &mut OpState,
millis: u64,
- _: (),
) -> Result<(), AnyError>
where
TP: TimersPermission + 'static,
diff --git a/ext/webgpu/src/binding.rs b/ext/webgpu/src/binding.rs
index 7370f8034..cb0d9e034 100644
--- a/ext/webgpu/src/binding.rs
+++ b/ext/webgpu/src/binding.rs
@@ -182,7 +182,6 @@ pub struct CreateBindGroupLayoutArgs {
pub fn op_webgpu_create_bind_group_layout(
state: &mut OpState,
args: CreateBindGroupLayoutArgs,
- _: (),
) -> Result<WebGpuResult, AnyError> {
let instance = state.borrow::<super::Instance>();
let device_resource = state
@@ -226,7 +225,6 @@ pub struct CreatePipelineLayoutArgs {
pub fn op_webgpu_create_pipeline_layout(
state: &mut OpState,
args: CreatePipelineLayoutArgs,
- _: (),
) -> Result<WebGpuResult, AnyError> {
let instance = state.borrow::<super::Instance>();
let device_resource = state
@@ -278,7 +276,6 @@ pub struct CreateBindGroupArgs {
pub fn op_webgpu_create_bind_group(
state: &mut OpState,
args: CreateBindGroupArgs,
- _: (),
) -> Result<WebGpuResult, AnyError> {
let instance = state.borrow::<super::Instance>();
let device_resource = state
diff --git a/ext/webgpu/src/buffer.rs b/ext/webgpu/src/buffer.rs
index ce3a78d01..24bd98efb 100644
--- a/ext/webgpu/src/buffer.rs
+++ b/ext/webgpu/src/buffer.rs
@@ -46,7 +46,6 @@ pub struct CreateBufferArgs {
pub fn op_webgpu_create_buffer(
state: &mut OpState,
args: CreateBufferArgs,
- _: (),
) -> Result<WebGpuResult, AnyError> {
let instance = state.borrow::<super::Instance>();
let device_resource = state
@@ -83,7 +82,6 @@ pub struct BufferGetMapAsyncArgs {
pub async fn op_webgpu_buffer_get_map_async(
state: Rc<RefCell<OpState>>,
args: BufferGetMapAsyncArgs,
- _: (),
) -> Result<WebGpuResult, AnyError> {
let (sender, receiver) = oneshot::channel::<Result<(), AnyError>>();
diff --git a/ext/webgpu/src/bundle.rs b/ext/webgpu/src/bundle.rs
index 4a0807302..0c1f82202 100644
--- a/ext/webgpu/src/bundle.rs
+++ b/ext/webgpu/src/bundle.rs
@@ -44,7 +44,6 @@ pub struct CreateRenderBundleEncoderArgs {
pub fn op_webgpu_create_render_bundle_encoder(
state: &mut OpState,
args: CreateRenderBundleEncoderArgs,
- _: (),
) -> Result<WebGpuResult, AnyError> {
let device_resource = state
.resource_table
@@ -105,7 +104,6 @@ pub struct RenderBundleEncoderFinishArgs {
pub fn op_webgpu_render_bundle_encoder_finish(
state: &mut OpState,
args: RenderBundleEncoderFinishArgs,
- _: (),
) -> Result<WebGpuResult, AnyError> {
let render_bundle_encoder_resource =
state
@@ -142,7 +140,6 @@ pub struct RenderBundleEncoderSetBindGroupArgs {
pub fn op_webgpu_render_bundle_encoder_set_bind_group(
state: &mut OpState,
args: RenderBundleEncoderSetBindGroupArgs,
- _: (),
) -> Result<WebGpuResult, AnyError> {
let bind_group_resource =
state
@@ -197,7 +194,6 @@ pub struct RenderBundleEncoderPushDebugGroupArgs {
pub fn op_webgpu_render_bundle_encoder_push_debug_group(
state: &mut OpState,
args: RenderBundleEncoderPushDebugGroupArgs,
- _: (),
) -> Result<WebGpuResult, AnyError> {
let render_bundle_encoder_resource =
state
@@ -227,7 +223,6 @@ pub struct RenderBundleEncoderPopDebugGroupArgs {
pub fn op_webgpu_render_bundle_encoder_pop_debug_group(
state: &mut OpState,
args: RenderBundleEncoderPopDebugGroupArgs,
- _: (),
) -> Result<WebGpuResult, AnyError> {
let render_bundle_encoder_resource =
state
@@ -252,7 +247,6 @@ pub struct RenderBundleEncoderInsertDebugMarkerArgs {
pub fn op_webgpu_render_bundle_encoder_insert_debug_marker(
state: &mut OpState,
args: RenderBundleEncoderInsertDebugMarkerArgs,
- _: (),
) -> Result<WebGpuResult, AnyError> {
let render_bundle_encoder_resource =
state
@@ -283,7 +277,6 @@ pub struct RenderBundleEncoderSetPipelineArgs {
pub fn op_webgpu_render_bundle_encoder_set_pipeline(
state: &mut OpState,
args: RenderBundleEncoderSetPipelineArgs,
- _: (),
) -> Result<WebGpuResult, AnyError> {
let render_pipeline_resource =
state
@@ -316,7 +309,6 @@ pub struct RenderBundleEncoderSetIndexBufferArgs {
pub fn op_webgpu_render_bundle_encoder_set_index_buffer(
state: &mut OpState,
args: RenderBundleEncoderSetIndexBufferArgs,
- _: (),
) -> Result<WebGpuResult, AnyError> {
let buffer_resource = state
.resource_table
@@ -353,7 +345,6 @@ pub struct RenderBundleEncoderSetVertexBufferArgs {
pub fn op_webgpu_render_bundle_encoder_set_vertex_buffer(
state: &mut OpState,
args: RenderBundleEncoderSetVertexBufferArgs,
- _: (),
) -> Result<WebGpuResult, AnyError> {
let buffer_resource = state
.resource_table
@@ -388,7 +379,6 @@ pub struct RenderBundleEncoderDrawArgs {
pub fn op_webgpu_render_bundle_encoder_draw(
state: &mut OpState,
args: RenderBundleEncoderDrawArgs,
- _: (),
) -> Result<WebGpuResult, AnyError> {
let render_bundle_encoder_resource =
state
@@ -421,7 +411,6 @@ pub struct RenderBundleEncoderDrawIndexedArgs {
pub fn op_webgpu_render_bundle_encoder_draw_indexed(
state: &mut OpState,
args: RenderBundleEncoderDrawIndexedArgs,
- _: (),
) -> Result<WebGpuResult, AnyError> {
let render_bundle_encoder_resource =
state
@@ -452,7 +441,6 @@ pub struct RenderBundleEncoderDrawIndirectArgs {
pub fn op_webgpu_render_bundle_encoder_draw_indirect(
state: &mut OpState,
args: RenderBundleEncoderDrawIndirectArgs,
- _: (),
) -> Result<WebGpuResult, AnyError> {
let buffer_resource = state
.resource_table
diff --git a/ext/webgpu/src/command_encoder.rs b/ext/webgpu/src/command_encoder.rs
index c81b2abf6..dc777a85d 100644
--- a/ext/webgpu/src/command_encoder.rs
+++ b/ext/webgpu/src/command_encoder.rs
@@ -41,7 +41,6 @@ pub struct CreateCommandEncoderArgs {
pub fn op_webgpu_create_command_encoder(
state: &mut OpState,
args: CreateCommandEncoderArgs,
- _: (),
) -> Result<WebGpuResult, AnyError> {
let instance = state.borrow::<super::Instance>();
let device_resource = state
@@ -102,7 +101,6 @@ pub struct CommandEncoderBeginRenderPassArgs {
pub fn op_webgpu_command_encoder_begin_render_pass(
state: &mut OpState,
args: CommandEncoderBeginRenderPassArgs,
- _: (),
) -> Result<WebGpuResult, AnyError> {
let command_encoder_resource = state
.resource_table
@@ -221,7 +219,6 @@ pub struct CommandEncoderBeginComputePassArgs {
pub fn op_webgpu_command_encoder_begin_compute_pass(
state: &mut OpState,
args: CommandEncoderBeginComputePassArgs,
- _: (),
) -> Result<WebGpuResult, AnyError> {
let command_encoder_resource = state
.resource_table
@@ -260,7 +257,6 @@ pub struct CommandEncoderCopyBufferToBufferArgs {
pub fn op_webgpu_command_encoder_copy_buffer_to_buffer(
state: &mut OpState,
args: CommandEncoderCopyBufferToBufferArgs,
- _: (),
) -> Result<WebGpuResult, AnyError> {
let instance = state.borrow::<super::Instance>();
let command_encoder_resource = state
@@ -319,7 +315,6 @@ pub struct CommandEncoderCopyBufferToTextureArgs {
pub fn op_webgpu_command_encoder_copy_buffer_to_texture(
state: &mut OpState,
args: CommandEncoderCopyBufferToTextureArgs,
- _: (),
) -> Result<WebGpuResult, AnyError> {
let instance = state.borrow::<super::Instance>();
let command_encoder_resource = state
@@ -370,7 +365,6 @@ pub struct CommandEncoderCopyTextureToBufferArgs {
pub fn op_webgpu_command_encoder_copy_texture_to_buffer(
state: &mut OpState,
args: CommandEncoderCopyTextureToBufferArgs,
- _: (),
) -> Result<WebGpuResult, AnyError> {
let instance = state.borrow::<super::Instance>();
let command_encoder_resource = state
@@ -425,7 +419,6 @@ pub struct CommandEncoderCopyTextureToTextureArgs {
pub fn op_webgpu_command_encoder_copy_texture_to_texture(
state: &mut OpState,
args: CommandEncoderCopyTextureToTextureArgs,
- _: (),
) -> Result<WebGpuResult, AnyError> {
let instance = state.borrow::<super::Instance>();
let command_encoder_resource = state
@@ -474,7 +467,6 @@ pub struct CommandEncoderClearBufferArgs {
pub fn op_webgpu_command_encoder_clear_buffer(
state: &mut OpState,
args: CommandEncoderClearBufferArgs,
- _: (),
) -> Result<WebGpuResult, AnyError> {
let instance = state.borrow::<super::Instance>();
let command_encoder_resource = state
@@ -504,7 +496,6 @@ pub struct CommandEncoderPushDebugGroupArgs {
pub fn op_webgpu_command_encoder_push_debug_group(
state: &mut OpState,
args: CommandEncoderPushDebugGroupArgs,
- _: (),
) -> Result<WebGpuResult, AnyError> {
let instance = state.borrow::<super::Instance>();
let command_encoder_resource = state
@@ -526,7 +517,6 @@ pub struct CommandEncoderPopDebugGroupArgs {
pub fn op_webgpu_command_encoder_pop_debug_group(
state: &mut OpState,
args: CommandEncoderPopDebugGroupArgs,
- _: (),
) -> Result<WebGpuResult, AnyError> {
let instance = state.borrow::<super::Instance>();
let command_encoder_resource = state
@@ -548,7 +538,6 @@ pub struct CommandEncoderInsertDebugMarkerArgs {
pub fn op_webgpu_command_encoder_insert_debug_marker(
state: &mut OpState,
args: CommandEncoderInsertDebugMarkerArgs,
- _: (),
) -> Result<WebGpuResult, AnyError> {
let instance = state.borrow::<super::Instance>();
let command_encoder_resource = state
@@ -574,7 +563,6 @@ pub struct CommandEncoderWriteTimestampArgs {
pub fn op_webgpu_command_encoder_write_timestamp(
state: &mut OpState,
args: CommandEncoderWriteTimestampArgs,
- _: (),
) -> Result<WebGpuResult, AnyError> {
let instance = state.borrow::<super::Instance>();
let command_encoder_resource = state
@@ -607,7 +595,6 @@ pub struct CommandEncoderResolveQuerySetArgs {
pub fn op_webgpu_command_encoder_resolve_query_set(
state: &mut OpState,
args: CommandEncoderResolveQuerySetArgs,
- _: (),
) -> Result<WebGpuResult, AnyError> {
let instance = state.borrow::<super::Instance>();
let command_encoder_resource = state
@@ -642,7 +629,6 @@ pub struct CommandEncoderFinishArgs {
pub fn op_webgpu_command_encoder_finish(
state: &mut OpState,
args: CommandEncoderFinishArgs,
- _: (),
) -> Result<WebGpuResult, AnyError> {
let command_encoder_resource = state
.resource_table
diff --git a/ext/webgpu/src/compute_pass.rs b/ext/webgpu/src/compute_pass.rs
index e6ebdc098..9f6394f7b 100644
--- a/ext/webgpu/src/compute_pass.rs
+++ b/ext/webgpu/src/compute_pass.rs
@@ -31,7 +31,6 @@ pub struct ComputePassSetPipelineArgs {
pub fn op_webgpu_compute_pass_set_pipeline(
state: &mut OpState,
args: ComputePassSetPipelineArgs,
- _: (),
) -> Result<WebGpuResult, AnyError> {
let compute_pipeline_resource =
state
@@ -62,7 +61,6 @@ pub struct ComputePassDispatchArgs {
pub fn op_webgpu_compute_pass_dispatch(
state: &mut OpState,
args: ComputePassDispatchArgs,
- _: (),
) -> Result<WebGpuResult, AnyError> {
let compute_pass_resource = state
.resource_table
@@ -90,7 +88,6 @@ pub struct ComputePassDispatchIndirectArgs {
pub fn op_webgpu_compute_pass_dispatch_indirect(
state: &mut OpState,
args: ComputePassDispatchIndirectArgs,
- _: (),
) -> Result<WebGpuResult, AnyError> {
let buffer_resource = state
.resource_table
@@ -120,7 +117,6 @@ pub struct ComputePassBeginPipelineStatisticsQueryArgs {
pub fn op_webgpu_compute_pass_begin_pipeline_statistics_query(
state: &mut OpState,
args: ComputePassBeginPipelineStatisticsQueryArgs,
- _: (),
) -> Result<WebGpuResult, AnyError> {
let compute_pass_resource = state
.resource_table
@@ -148,7 +144,6 @@ pub struct ComputePassEndPipelineStatisticsQueryArgs {
pub fn op_webgpu_compute_pass_end_pipeline_statistics_query(
state: &mut OpState,
args: ComputePassEndPipelineStatisticsQueryArgs,
- _: (),
) -> Result<WebGpuResult, AnyError> {
let compute_pass_resource = state
.resource_table
@@ -173,7 +168,6 @@ pub struct ComputePassWriteTimestampArgs {
pub fn op_webgpu_compute_pass_write_timestamp(
state: &mut OpState,
args: ComputePassWriteTimestampArgs,
- _: (),
) -> Result<WebGpuResult, AnyError> {
let compute_pass_resource = state
.resource_table
@@ -202,7 +196,6 @@ pub struct ComputePassEndPassArgs {
pub fn op_webgpu_compute_pass_end_pass(
state: &mut OpState,
args: ComputePassEndPassArgs,
- _: (),
) -> Result<WebGpuResult, AnyError> {
let command_encoder_resource = state
.resource_table
@@ -237,7 +230,6 @@ pub struct ComputePassSetBindGroupArgs {
pub fn op_webgpu_compute_pass_set_bind_group(
state: &mut OpState,
args: ComputePassSetBindGroupArgs,
- _: (),
) -> Result<WebGpuResult, AnyError> {
let bind_group_resource =
state
@@ -291,7 +283,6 @@ pub struct ComputePassPushDebugGroupArgs {
pub fn op_webgpu_compute_pass_push_debug_group(
state: &mut OpState,
args: ComputePassPushDebugGroupArgs,
- _: (),
) -> Result<WebGpuResult, AnyError> {
let compute_pass_resource = state
.resource_table
@@ -321,7 +312,6 @@ pub struct ComputePassPopDebugGroupArgs {
pub fn op_webgpu_compute_pass_pop_debug_group(
state: &mut OpState,
args: ComputePassPopDebugGroupArgs,
- _: (),
) -> Result<WebGpuResult, AnyError> {
let compute_pass_resource = state
.resource_table
@@ -345,7 +335,6 @@ pub struct ComputePassInsertDebugMarkerArgs {
pub fn op_webgpu_compute_pass_insert_debug_marker(
state: &mut OpState,
args: ComputePassInsertDebugMarkerArgs,
- _: (),
) -> Result<WebGpuResult, AnyError> {
let compute_pass_resource = state
.resource_table
diff --git a/ext/webgpu/src/lib.rs b/ext/webgpu/src/lib.rs
index d1eba20ba..329bec755 100644
--- a/ext/webgpu/src/lib.rs
+++ b/ext/webgpu/src/lib.rs
@@ -245,7 +245,6 @@ pub struct GpuAdapterDevice {
pub async fn op_webgpu_request_adapter(
state: Rc<RefCell<OpState>>,
args: RequestAdapterArgs,
- _: (),
) -> Result<GpuAdapterDeviceOrErr, AnyError> {
let mut state = state.borrow_mut();
check_unstable(&state, "navigator.gpu.requestAdapter");
@@ -444,7 +443,6 @@ impl From<GpuRequiredFeatures> for wgpu_types::Features {
pub async fn op_webgpu_request_device(
state: Rc<RefCell<OpState>>,
args: RequestDeviceArgs,
- _: (),
) -> Result<GpuAdapterDevice, AnyError> {
let mut state = state.borrow_mut();
let adapter_resource = state
@@ -545,7 +543,6 @@ impl From<GpuQueryType> for wgpu_types::QueryType {
pub fn op_webgpu_create_query_set(
state: &mut OpState,
args: CreateQuerySetArgs,
- _: (),
) -> Result<WebGpuResult, AnyError> {
let device_resource =
state.resource_table.get::<WebGpuDevice>(args.device_rid)?;
diff --git a/ext/webgpu/src/pipeline.rs b/ext/webgpu/src/pipeline.rs
index 6ea2a5677..8dd0e7e0f 100644
--- a/ext/webgpu/src/pipeline.rs
+++ b/ext/webgpu/src/pipeline.rs
@@ -62,7 +62,6 @@ pub struct CreateComputePipelineArgs {
pub fn op_webgpu_create_compute_pipeline(
state: &mut OpState,
args: CreateComputePipelineArgs,
- _: (),
) -> Result<WebGpuResult, AnyError> {
let instance = state.borrow::<super::Instance>();
let device_resource = state
@@ -132,7 +131,6 @@ pub struct PipelineLayout {
pub fn op_webgpu_compute_pipeline_get_bind_group_layout(
state: &mut OpState,
args: ComputePipelineGetBindGroupLayoutArgs,
- _: (),
) -> Result<PipelineLayout, AnyError> {
let instance = state.borrow::<super::Instance>();
let compute_pipeline_resource = state
@@ -310,7 +308,6 @@ pub struct CreateRenderPipelineArgs {
pub fn op_webgpu_create_render_pipeline(
state: &mut OpState,
args: CreateRenderPipelineArgs,
- _: (),
) -> Result<WebGpuResult, AnyError> {
let instance = state.borrow::<super::Instance>();
let device_resource = state
@@ -412,7 +409,6 @@ pub struct RenderPipelineGetBindGroupLayoutArgs {
pub fn op_webgpu_render_pipeline_get_bind_group_layout(
state: &mut OpState,
args: RenderPipelineGetBindGroupLayoutArgs,
- _: (),
) -> Result<PipelineLayout, AnyError> {
let instance = state.borrow::<super::Instance>();
let render_pipeline_resource = state
diff --git a/ext/webgpu/src/queue.rs b/ext/webgpu/src/queue.rs
index 3853f0025..b4532cf0c 100644
--- a/ext/webgpu/src/queue.rs
+++ b/ext/webgpu/src/queue.rs
@@ -24,7 +24,6 @@ pub struct QueueSubmitArgs {
pub fn op_webgpu_queue_submit(
state: &mut OpState,
args: QueueSubmitArgs,
- _: (),
) -> Result<WebGpuResult, AnyError> {
let instance = state.borrow::<super::Instance>();
let queue_resource =
diff --git a/ext/webgpu/src/render_pass.rs b/ext/webgpu/src/render_pass.rs
index 822b4c8c9..16398359f 100644
--- a/ext/webgpu/src/render_pass.rs
+++ b/ext/webgpu/src/render_pass.rs
@@ -37,7 +37,6 @@ pub struct RenderPassSetViewportArgs {
pub fn op_webgpu_render_pass_set_viewport(
state: &mut OpState,
args: RenderPassSetViewportArgs,
- _: (),
) -> Result<WebGpuResult, AnyError> {
let render_pass_resource = state
.resource_table
@@ -70,7 +69,6 @@ pub struct RenderPassSetScissorRectArgs {
pub fn op_webgpu_render_pass_set_scissor_rect(
state: &mut OpState,
args: RenderPassSetScissorRectArgs,
- _: (),
) -> Result<WebGpuResult, AnyError> {
let render_pass_resource = state
.resource_table
@@ -98,7 +96,6 @@ pub struct RenderPassSetBlendConstantArgs {
pub fn op_webgpu_render_pass_set_blend_constant(
state: &mut OpState,
args: RenderPassSetBlendConstantArgs,
- _: (),
) -> Result<WebGpuResult, AnyError> {
let render_pass_resource = state
.resource_table
@@ -123,7 +120,6 @@ pub struct RenderPassSetStencilReferenceArgs {
pub fn op_webgpu_render_pass_set_stencil_reference(
state: &mut OpState,
args: RenderPassSetStencilReferenceArgs,
- _: (),
) -> Result<WebGpuResult, AnyError> {
let render_pass_resource = state
.resource_table
@@ -149,7 +145,6 @@ pub struct RenderPassBeginPipelineStatisticsQueryArgs {
pub fn op_webgpu_render_pass_begin_pipeline_statistics_query(
state: &mut OpState,
args: RenderPassBeginPipelineStatisticsQueryArgs,
- _: (),
) -> Result<WebGpuResult, AnyError> {
let render_pass_resource = state
.resource_table
@@ -177,7 +172,6 @@ pub struct RenderPassEndPipelineStatisticsQueryArgs {
pub fn op_webgpu_render_pass_end_pipeline_statistics_query(
state: &mut OpState,
args: RenderPassEndPipelineStatisticsQueryArgs,
- _: (),
) -> Result<WebGpuResult, AnyError> {
let render_pass_resource = state
.resource_table
@@ -202,7 +196,6 @@ pub struct RenderPassWriteTimestampArgs {
pub fn op_webgpu_render_pass_write_timestamp(
state: &mut OpState,
args: RenderPassWriteTimestampArgs,
- _: (),
) -> Result<WebGpuResult, AnyError> {
let render_pass_resource = state
.resource_table
@@ -231,7 +224,6 @@ pub struct RenderPassExecuteBundlesArgs {
pub fn op_webgpu_render_pass_execute_bundles(
state: &mut OpState,
args: RenderPassExecuteBundlesArgs,
- _: (),
) -> Result<WebGpuResult, AnyError> {
let mut render_bundle_ids = vec![];
@@ -271,7 +263,6 @@ pub struct RenderPassEndPassArgs {
pub fn op_webgpu_render_pass_end_pass(
state: &mut OpState,
args: RenderPassEndPassArgs,
- _: (),
) -> Result<WebGpuResult, AnyError> {
let command_encoder_resource = state
.resource_table
@@ -303,7 +294,6 @@ pub struct RenderPassSetBindGroupArgs {
pub fn op_webgpu_render_pass_set_bind_group(
state: &mut OpState,
args: RenderPassSetBindGroupArgs,
- _: (),
) -> Result<WebGpuResult, AnyError> {
let bind_group_resource =
state
@@ -357,7 +347,6 @@ pub struct RenderPassPushDebugGroupArgs {
pub fn op_webgpu_render_pass_push_debug_group(
state: &mut OpState,
args: RenderPassPushDebugGroupArgs,
- _: (),
) -> Result<WebGpuResult, AnyError> {
let render_pass_resource = state
.resource_table
@@ -387,7 +376,6 @@ pub struct RenderPassPopDebugGroupArgs {
pub fn op_webgpu_render_pass_pop_debug_group(
state: &mut OpState,
args: RenderPassPopDebugGroupArgs,
- _: (),
) -> Result<WebGpuResult, AnyError> {
let render_pass_resource = state
.resource_table
@@ -411,7 +399,6 @@ pub struct RenderPassInsertDebugMarkerArgs {
pub fn op_webgpu_render_pass_insert_debug_marker(
state: &mut OpState,
args: RenderPassInsertDebugMarkerArgs,
- _: (),
) -> Result<WebGpuResult, AnyError> {
let render_pass_resource = state
.resource_table
@@ -442,7 +429,6 @@ pub struct RenderPassSetPipelineArgs {
pub fn op_webgpu_render_pass_set_pipeline(
state: &mut OpState,
args: RenderPassSetPipelineArgs,
- _: (),
) -> Result<WebGpuResult, AnyError> {
let render_pipeline_resource =
state
@@ -474,7 +460,6 @@ pub struct RenderPassSetIndexBufferArgs {
pub fn op_webgpu_render_pass_set_index_buffer(
state: &mut OpState,
args: RenderPassSetIndexBufferArgs,
- _: (),
) -> Result<WebGpuResult, AnyError> {
let buffer_resource = state
.resource_table
@@ -516,7 +501,6 @@ pub struct RenderPassSetVertexBufferArgs {
pub fn op_webgpu_render_pass_set_vertex_buffer(
state: &mut OpState,
args: RenderPassSetVertexBufferArgs,
- _: (),
) -> Result<WebGpuResult, AnyError> {
let buffer_resource = state
.resource_table
@@ -559,7 +543,6 @@ pub struct RenderPassDrawArgs {
pub fn op_webgpu_render_pass_draw(
state: &mut OpState,
args: RenderPassDrawArgs,
- _: (),
) -> Result<WebGpuResult, AnyError> {
let render_pass_resource = state
.resource_table
@@ -591,7 +574,6 @@ pub struct RenderPassDrawIndexedArgs {
pub fn op_webgpu_render_pass_draw_indexed(
state: &mut OpState,
args: RenderPassDrawIndexedArgs,
- _: (),
) -> Result<WebGpuResult, AnyError> {
let render_pass_resource = state
.resource_table
@@ -621,7 +603,6 @@ pub struct RenderPassDrawIndirectArgs {
pub fn op_webgpu_render_pass_draw_indirect(
state: &mut OpState,
args: RenderPassDrawIndirectArgs,
- _: (),
) -> Result<WebGpuResult, AnyError> {
let buffer_resource = state
.resource_table
@@ -651,7 +632,6 @@ pub struct RenderPassDrawIndexedIndirectArgs {
pub fn op_webgpu_render_pass_draw_indexed_indirect(
state: &mut OpState,
args: RenderPassDrawIndexedIndirectArgs,
- _: (),
) -> Result<WebGpuResult, AnyError> {
let buffer_resource = state
.resource_table
diff --git a/ext/webgpu/src/sampler.rs b/ext/webgpu/src/sampler.rs
index 3c0c43f53..c6827f4cb 100644
--- a/ext/webgpu/src/sampler.rs
+++ b/ext/webgpu/src/sampler.rs
@@ -37,7 +37,6 @@ pub struct CreateSamplerArgs {
pub fn op_webgpu_create_sampler(
state: &mut OpState,
args: CreateSamplerArgs,
- _: (),
) -> Result<WebGpuResult, AnyError> {
let instance = state.borrow::<super::Instance>();
let device_resource = state
diff --git a/ext/webgpu/src/shader.rs b/ext/webgpu/src/shader.rs
index 0173fffa2..a5e4e5d43 100644
--- a/ext/webgpu/src/shader.rs
+++ b/ext/webgpu/src/shader.rs
@@ -29,7 +29,6 @@ pub struct CreateShaderModuleArgs {
pub fn op_webgpu_create_shader_module(
state: &mut OpState,
args: CreateShaderModuleArgs,
- _: (),
) -> Result<WebGpuResult, AnyError> {
let instance = state.borrow::<super::Instance>();
let device_resource = state
diff --git a/ext/webgpu/src/texture.rs b/ext/webgpu/src/texture.rs
index 482437478..0d1154409 100644
--- a/ext/webgpu/src/texture.rs
+++ b/ext/webgpu/src/texture.rs
@@ -39,7 +39,6 @@ pub struct CreateTextureArgs {
pub fn op_webgpu_create_texture(
state: &mut OpState,
args: CreateTextureArgs,
- _: (),
) -> Result<WebGpuResult, AnyError> {
let instance = state.borrow::<super::Instance>();
let device_resource = state
@@ -82,7 +81,6 @@ pub struct CreateTextureViewArgs {
pub fn op_webgpu_create_texture_view(
state: &mut OpState,
args: CreateTextureViewArgs,
- _: (),
) -> Result<WebGpuResult, AnyError> {
let instance = state.borrow::<super::Instance>();
let texture_resource = state
diff --git a/ext/websocket/lib.rs b/ext/websocket/lib.rs
index d712140b5..0b9470274 100644
--- a/ext/websocket/lib.rs
+++ b/ext/websocket/lib.rs
@@ -234,7 +234,6 @@ pub struct CreateResponse {
pub async fn op_ws_create<WP>(
state: Rc<RefCell<OpState>>,
args: CreateArgs,
- _: (),
) -> Result<CreateResponse, AnyError>
where
WP: WebSocketPermissions + 'static,
@@ -413,7 +412,6 @@ pub struct CloseArgs {
pub async fn op_ws_close(
state: Rc<RefCell<OpState>>,
args: CloseArgs,
- _: (),
) -> Result<(), AnyError> {
let rid = args.rid;
let msg = Message::Close(args.code.map(|c| CloseFrame {
@@ -448,7 +446,6 @@ pub enum NextEventResponse {
pub async fn op_ws_next_event(
state: Rc<RefCell<OpState>>,
rid: ResourceId,
- _: (),
) -> Result<NextEventResponse, AnyError> {
let resource = state
.borrow_mut()
diff --git a/ext/webstorage/lib.rs b/ext/webstorage/lib.rs
index c51301683..8569fece6 100644
--- a/ext/webstorage/lib.rs
+++ b/ext/webstorage/lib.rs
@@ -104,7 +104,6 @@ fn get_webstorage(
pub fn op_webstorage_length(
state: &mut OpState,
persistent: bool,
- _: (),
) -> Result<u32, AnyError> {
let conn = get_webstorage(state, persistent)?;
@@ -201,7 +200,6 @@ pub fn op_webstorage_remove(
pub fn op_webstorage_clear(
state: &mut OpState,
persistent: bool,
- _: (),
) -> Result<(), AnyError> {
let conn = get_webstorage(state, persistent)?;
@@ -215,7 +213,6 @@ pub fn op_webstorage_clear(
pub fn op_webstorage_iterate_keys(
state: &mut OpState,
persistent: bool,
- _: (),
) -> Result<Vec<String>, AnyError> {
let conn = get_webstorage(state, persistent)?;