diff options
Diffstat (limited to 'ext')
| -rw-r--r-- | ext/broadcast_channel/lib.rs | 1 | ||||
| -rw-r--r-- | ext/cache/lib.rs | 1 | ||||
| -rw-r--r-- | ext/crypto/lib.rs | 1 | ||||
| -rw-r--r-- | ext/fetch/lib.rs | 1 | ||||
| -rw-r--r-- | ext/ffi/lib.rs | 2 | ||||
| -rw-r--r-- | ext/flash/lib.rs | 1 | ||||
| -rw-r--r-- | ext/fs/lib.rs | 1 | ||||
| -rw-r--r-- | ext/io/lib.rs | 1 | ||||
| -rw-r--r-- | ext/napi/lib.rs | 1 | ||||
| -rw-r--r-- | ext/net/lib.rs | 1 | ||||
| -rw-r--r-- | ext/net/ops.rs | 1 | ||||
| -rw-r--r-- | ext/node/lib.rs | 1 | ||||
| -rw-r--r-- | ext/web/benches/encoding.rs | 1 | ||||
| -rw-r--r-- | ext/web/benches/timers_ops.rs | 1 | ||||
| -rw-r--r-- | ext/web/lib.rs | 1 | ||||
| -rw-r--r-- | ext/webgpu/lib.rs | 1 | ||||
| -rw-r--r-- | ext/webgpu/surface.rs | 1 | ||||
| -rw-r--r-- | ext/websocket/lib.rs | 1 | ||||
| -rw-r--r-- | ext/webstorage/lib.rs | 1 |
19 files changed, 0 insertions, 20 deletions
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<BC: BroadcastChannel + 'static>( .state(move |state| { state.put(bc.clone()); state.put(Unstable(unstable)); - Ok(()) }) .build() } diff --git a/ext/cache/lib.rs b/ext/cache/lib.rs index b0efbca55..463ade94f 100644 --- a/ext/cache/lib.rs +++ b/ext/cache/lib.rs @@ -40,7 +40,6 @@ pub fn init<CA: Cache + 'static>( if let Some(create_cache) = maybe_create_cache.clone() { state.put(create_cache); } - Ok(()) }) .build() } diff --git a/ext/crypto/lib.rs b/ext/crypto/lib.rs index 9d6017f39..6f456c9ee 100644 --- a/ext/crypto/lib.rs +++ b/ext/crypto/lib.rs @@ -111,7 +111,6 @@ pub fn init(maybe_seed: Option<u64>) -> Extension { if let Some(seed) = maybe_seed { state.put(StdRng::seed_from_u64(seed)); } - Ok(()) }) .build() } diff --git a/ext/fetch/lib.rs b/ext/fetch/lib.rs index 766dabb62..f2a962539 100644 --- a/ext/fetch/lib.rs +++ b/ext/fetch/lib.rs @@ -124,7 +124,6 @@ where ) .unwrap() }); - Ok(()) }) .build() } 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<P: FfiPermissions + 'static>(unstable: bool) -> Extension { async_work_receiver, async_work_sender, }); - - Ok(()) }) .build() } diff --git a/ext/flash/lib.rs b/ext/flash/lib.rs index 4ae064173..b50b7bb5c 100644 --- a/ext/flash/lib.rs +++ b/ext/flash/lib.rs @@ -1567,7 +1567,6 @@ pub fn init<P: FlashPermissions + 'static>(unstable: bool) -> Extension { join_handles: HashMap::default(), servers: HashMap::default(), }); - Ok(()) }) .build() } diff --git a/ext/fs/lib.rs b/ext/fs/lib.rs index 7551408a9..4b177a2bf 100644 --- a/ext/fs/lib.rs +++ b/ext/fs/lib.rs @@ -122,7 +122,6 @@ pub fn init<P: FsPermissions + 'static>(unstable: bool) -> Extension { .esm(include_js_files!("30_fs.js",)) .state(move |state| { state.put(UnstableChecker { unstable }); - Ok(()) }) .ops(vec![ op_open_sync::decl::<P>(), diff --git a/ext/io/lib.rs b/ext/io/lib.rs index f8dde139f..84d9d34a6 100644 --- a/ext/io/lib.rs +++ b/ext/io/lib.rs @@ -132,7 +132,6 @@ pub fn init(stdio: Stdio) -> Extension { "stderr", )); assert_eq!(rid, 2, "stderr must have ResourceId 2"); - Ok(()) }) .build() } 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() } diff --git a/ext/net/lib.rs b/ext/net/lib.rs index 0536f3233..5dc7823bc 100644 --- a/ext/net/lib.rs +++ b/ext/net/lib.rs @@ -96,7 +96,6 @@ pub fn init<P: NetPermissions + 'static>( state.put(UnsafelyIgnoreCertificateErrors( unsafely_ignore_certificate_errors.clone(), )); - Ok(()) }) .build() } diff --git a/ext/net/ops.rs b/ext/net/ops.rs index 737a46d8c..8ac08119a 100644 --- a/ext/net/ops.rs +++ b/ext/net/ops.rs @@ -910,7 +910,6 @@ mod tests { .state(move |state| { state.put(TestPermission {}); state.put(UnstableChecker { unstable: true }); - Ok(()) }) .build(); diff --git a/ext/node/lib.rs b/ext/node/lib.rs index e1134bd03..411151f2f 100644 --- a/ext/node/lib.rs +++ b/ext/node/lib.rs @@ -383,7 +383,6 @@ pub fn init<P: NodePermissions + 'static>( if let Some(npm_resolver) = maybe_npm_resolver.clone() { state.put(npm_resolver); } - Ok(()) }) .build() } diff --git a/ext/web/benches/encoding.rs b/ext/web/benches/encoding.rs index e9ef3a563..ffea2617e 100644 --- a/ext/web/benches/encoding.rs +++ b/ext/web/benches/encoding.rs @@ -40,7 +40,6 @@ fn setup() -> Vec<Extension> { }]) .state(|state| { state.put(Permissions {}); - Ok(()) }) .build(), ] diff --git a/ext/web/benches/timers_ops.rs b/ext/web/benches/timers_ops.rs index f177f7d83..8c700266a 100644 --- a/ext/web/benches/timers_ops.rs +++ b/ext/web/benches/timers_ops.rs @@ -38,7 +38,6 @@ fn setup() -> Vec<Extension> { ]) .state(|state| { state.put(Permissions{}); - Ok(()) }) .build() ] diff --git a/ext/web/lib.rs b/ext/web/lib.rs index 76095810e..1af4cc29d 100644 --- a/ext/web/lib.rs +++ b/ext/web/lib.rs @@ -121,7 +121,6 @@ pub fn init<P: TimersPermission + 'static>( state.put(Location(location)); } state.put(StartTime::now()); - Ok(()) }) .build() } diff --git a/ext/webgpu/lib.rs b/ext/webgpu/lib.rs index 68069c133..8e13a8050 100644 --- a/ext/webgpu/lib.rs +++ b/ext/webgpu/lib.rs @@ -127,7 +127,6 @@ pub fn init(unstable: bool) -> Extension { // let unstable_checker = state.borrow::<super::UnstableChecker>(); // let unstable = unstable_checker.unstable; state.put(Unstable(unstable)); - Ok(()) }) .build() } 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::<super::UnstableChecker>(); // let unstable = unstable_checker.unstable; state.put(super::Unstable(unstable)); - Ok(()) }) .build() } diff --git a/ext/websocket/lib.rs b/ext/websocket/lib.rs index 0ae2ada63..4537c45e5 100644 --- a/ext/websocket/lib.rs +++ b/ext/websocket/lib.rs @@ -521,7 +521,6 @@ pub fn init<P: WebSocketPermissions + 'static>( unsafely_ignore_certificate_errors.clone(), )); state.put::<WsRootStore>(WsRootStore(root_cert_store.clone())); - Ok(()) }) .build() } 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<PathBuf>) -> Extension { if let Some(origin_storage_dir) = &origin_storage_dir { state.put(OriginStorageDir(origin_storage_dir.clone())); } - Ok(()) }) .build() } |
