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/webstorage/lib.rs | 1 - 1 file changed, 1 deletion(-) (limited to 'ext/webstorage') diff --git a/ext/webstorage/lib.rs b/ext/webstorage/lib.rs index 5e534a122..98f1246d2 100644 --- a/ext/webstorage/lib.rs +++ b/ext/webstorage/lib.rs @@ -38,7 +38,6 @@ pub fn init(origin_storage_dir: Option) -> Extension { if let Some(origin_storage_dir) = &origin_storage_dir { state.put(OriginStorageDir(origin_storage_dir.clone())); } - Ok(()) }) .build() } -- cgit v1.2.3