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/ffi/lib.rs | 2 -- 1 file changed, 2 deletions(-) (limited to 'ext/ffi') diff --git a/ext/ffi/lib.rs b/ext/ffi/lib.rs index 38a5a7eb2..e9ce2ec2e 100644 --- a/ext/ffi/lib.rs +++ b/ext/ffi/lib.rs @@ -151,8 +151,6 @@ pub fn init(unstable: bool) -> Extension { async_work_receiver, async_work_sender, }); - - Ok(()) }) .build() } -- cgit v1.2.3