From 77a00ce1fb4ae2523e22b9b84ae09a0200502e38 Mon Sep 17 00:00:00 2001 From: Leo K Date: Tue, 5 Oct 2021 22:38:27 +0200 Subject: chore: various op cleanup (#12329) --- ext/webgpu/buffer.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'ext/webgpu/buffer.rs') diff --git a/ext/webgpu/buffer.rs b/ext/webgpu/buffer.rs index 92afd2ef9..30818194f 100644 --- a/ext/webgpu/buffer.rs +++ b/ext/webgpu/buffer.rs @@ -1,6 +1,5 @@ // Copyright 2018-2021 the Deno authors. All rights reserved. MIT license. -use deno_core::error::null_opbuf; use deno_core::error::type_error; use deno_core::error::AnyError; use deno_core::futures::channel::oneshot; @@ -171,9 +170,8 @@ pub struct BufferGetMappedRangeArgs { pub fn op_webgpu_buffer_get_mapped_range( state: &mut OpState, args: BufferGetMappedRangeArgs, - zero_copy: Option, + mut zero_copy: ZeroCopyBuf, ) -> Result { - let mut zero_copy = zero_copy.ok_or_else(null_opbuf)?; let instance = state.borrow::(); let buffer_resource = state.resource_table.get::(args.buffer_rid)?; -- cgit v1.2.3