summaryrefslogtreecommitdiff
path: root/ext/webgpu/sampler.rs
diff options
context:
space:
mode:
authorLeo Kettmeir <crowlkats@toaxl.com>2024-10-18 18:53:04 -0700
committerGitHub <noreply@github.com>2024-10-18 18:53:04 -0700
commit615e6b7cc2e89a2a5cc3ab614eecde5aa7de0596 (patch)
tree691f7e8f7e7ab98512aaf80a4aac8b0f8a3fc30b /ext/webgpu/sampler.rs
parent6c4ef11f04cc35b61417bf08d5e7592d44197c75 (diff)
refactor(ext/webgpu): use concrete error type (#26198)
Diffstat (limited to 'ext/webgpu/sampler.rs')
-rw-r--r--ext/webgpu/sampler.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/ext/webgpu/sampler.rs b/ext/webgpu/sampler.rs
index 27c36802e..9fc1269ea 100644
--- a/ext/webgpu/sampler.rs
+++ b/ext/webgpu/sampler.rs
@@ -1,6 +1,5 @@
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
-use deno_core::error::AnyError;
use deno_core::op2;
use deno_core::OpState;
use deno_core::Resource;
@@ -47,7 +46,7 @@ pub struct CreateSamplerArgs {
pub fn op_webgpu_create_sampler(
state: &mut OpState,
#[serde] args: CreateSamplerArgs,
-) -> Result<WebGpuResult, AnyError> {
+) -> Result<WebGpuResult, deno_core::error::AnyError> {
let instance = state.borrow::<super::Instance>();
let device_resource = state
.resource_table