mirror of
https://github.com/denoland/deno.git
synced 2025-08-04 19:08:15 +00:00
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.
This commit is contained in:
parent
0e3affcd5b
commit
b32a6f8ad2
33 changed files with 7 additions and 45 deletions
|
@ -18,7 +18,6 @@ fn init_proc_state(ps: ProcState) -> Extension {
|
|||
.ops(vec![op_npm_process_state::decl()])
|
||||
.state(move |state| {
|
||||
state.put(ps.clone());
|
||||
Ok(())
|
||||
})
|
||||
.build()
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue