From b32a6f8ad20e6e4b0cc24b8256c08192b4899844 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Tue, 7 Mar 2023 17:37:37 -0400 Subject: refactor(core): don't use Result in ExtensionBuilder::state (#18066) There's no point for this API to expect result. If something fails it should result in a panic during build time to signal to embedder that setup is wrong. --- ext/webgpu/surface.rs | 1 - 1 file changed, 1 deletion(-) (limited to 'ext/webgpu/surface.rs') diff --git a/ext/webgpu/surface.rs b/ext/webgpu/surface.rs index 8304427b9..d20d06bb1 100644 --- a/ext/webgpu/surface.rs +++ b/ext/webgpu/surface.rs @@ -30,7 +30,6 @@ pub fn init_surface(unstable: bool) -> Extension { // let unstable_checker = state.borrow::(); // let unstable = unstable_checker.unstable; state.put(super::Unstable(unstable)); - Ok(()) }) .build() } -- cgit v1.2.3