summaryrefslogtreecommitdiff
path: root/cli/build.rs
diff options
context:
space:
mode:
authorAaron O'Mullan <aaron.omullan@gmail.com>2021-05-06 19:32:03 +0200
committerGitHub <noreply@github.com>2021-05-06 19:32:03 +0200
commit1e8e44f4c31688ac55100f96bdab27723eb6e575 (patch)
tree820c3b61ded766ecb912eefddaae4894e399555c /cli/build.rs
parentf208e6a26f3c21c25dbfcfe29491a6f5660c999d (diff)
refactor(ops): replace `ZeroCopyBuf` arg by 2nd generic deserializable arg (#10448)
Diffstat (limited to 'cli/build.rs')
-rw-r--r--cli/build.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/cli/build.rs b/cli/build.rs
index d4e6a92ab..eb8a71c8c 100644
--- a/cli/build.rs
+++ b/cli/build.rs
@@ -156,7 +156,7 @@ fn create_compiler_snapshot(
});
js_runtime.register_op(
"op_build_info",
- op_sync(move |_state, _args: Value, _bufs| {
+ op_sync(move |_state, _args: Value, _: ()| {
Ok(json!({
"buildSpecifier": build_specifier,
"libs": build_libs,
@@ -167,7 +167,7 @@ fn create_compiler_snapshot(
// files, but a slightly different implementation at build time.
js_runtime.register_op(
"op_load",
- op_sync(move |_state, args, _bufs| {
+ op_sync(move |_state, args, _: ()| {
let v: LoadArgs = serde_json::from_value(args)?;
// we need a basic file to send to tsc to warm it up.
if v.specifier == build_specifier {