diff options
author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2023-03-07 17:37:37 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-07 22:37:37 +0100 |
commit | b32a6f8ad20e6e4b0cc24b8256c08192b4899844 (patch) | |
tree | 76201de6fe376b658b99228c8d2ca1618181ee57 /ext/napi/lib.rs | |
parent | 0e3affcd5b932e1b1ecc37934a0625a0d4d0d62c (diff) |
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.
Diffstat (limited to 'ext/napi/lib.rs')
-rw-r--r-- | ext/napi/lib.rs | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/ext/napi/lib.rs b/ext/napi/lib.rs index 628ecd5a2..471ebfeab 100644 --- a/ext/napi/lib.rs +++ b/ext/napi/lib.rs @@ -578,7 +578,6 @@ pub fn init<P: NapiPermissions + 'static>() -> Extension { env_cleanup_hooks: Rc::new(RefCell::new(vec![])), tsfn_ref_counters: Arc::new(Mutex::new(vec![])), }); - Ok(()) }) .build() } |