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/broadcast_channel/lib.rs | 1 - 1 file changed, 1 deletion(-) (limited to 'ext/broadcast_channel') diff --git a/ext/broadcast_channel/lib.rs b/ext/broadcast_channel/lib.rs index 85994bf97..cb8d31890 100644 --- a/ext/broadcast_channel/lib.rs +++ b/ext/broadcast_channel/lib.rs @@ -122,7 +122,6 @@ pub fn init( .state(move |state| { state.put(bc.clone()); state.put(Unstable(unstable)); - Ok(()) }) .build() } -- cgit v1.2.3