From 88d0f01948b68f4a4d87e02a5138e94ac0a6eaea Mon Sep 17 00:00:00 2001 From: Aaron O'Mullan Date: Mon, 14 Mar 2022 23:38:53 +0100 Subject: feat(ops): custom arity (#13949) Also cleanup & drop ignored wildcard op-args --- cli/build.rs | 19 +++---------------- 1 file changed, 3 insertions(+), 16 deletions(-) (limited to 'cli/build.rs') diff --git a/cli/build.rs b/cli/build.rs index f1eb1829c..d118dd5b9 100644 --- a/cli/build.rs +++ b/cli/build.rs @@ -192,7 +192,6 @@ fn create_compiler_snapshot( fn op_build_info( state: &mut OpState, _args: Value, - _: (), ) -> Result { let build_specifier = "asset:///bootstrap.ts"; let build_libs = state.borrow::>(); @@ -203,31 +202,19 @@ fn create_compiler_snapshot( } #[op] - fn op_cwd( - _state: &mut OpState, - _args: Value, - _: (), - ) -> Result { + fn op_cwd(_state: &mut OpState, _args: Value) -> Result { Ok(json!("cache:///")) } #[op] - fn op_exists( - _state: &mut OpState, - _args: Value, - _: (), - ) -> Result { + fn op_exists(_state: &mut OpState, _args: Value) -> Result { Ok(json!(false)) } #[op] // using the same op that is used in `tsc.rs` for loading modules and reading // files, but a slightly different implementation at build time. - fn op_load( - state: &mut OpState, - args: LoadArgs, - _: (), - ) -> Result { + fn op_load(state: &mut OpState, args: LoadArgs) -> Result { let op_crate_libs = state.borrow::>(); let path_dts = state.borrow::(); let re_asset = -- cgit v1.2.3