summaryrefslogtreecommitdiff
path: root/core/bindings.rs
diff options
context:
space:
mode:
authorDivy Srivastava <dj.srivastava23@gmail.com>2023-03-31 18:12:14 +0530
committerGitHub <noreply@github.com>2023-03-31 14:42:14 +0200
commitb9a379093264da47368ea9665f685016fe35bfca (patch)
treeaf6fd2e56846b8d0a6d1d8d88c0bfcffbb34c4d6 /core/bindings.rs
parent0f41aff1d9f6c131ff69d6dd1dc053afb008a19d (diff)
perf: `const` op declaration (#18288)
Co-authored-by: Levente Kurusa <lkurusa@kernelstuff.org> Co-authored-by: Bartek IwaƄczuk <biwanczuk@gmail.com>
Diffstat (limited to 'core/bindings.rs')
-rw-r--r--core/bindings.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/bindings.rs b/core/bindings.rs
index 52db40f0d..00d0cf2e6 100644
--- a/core/bindings.rs
+++ b/core/bindings.rs
@@ -44,7 +44,7 @@ pub(crate) fn external_references(ops: &[OpCtx]) -> v8::ExternalReferences {
});
if let Some(fast_fn) = &ctx.decl.fast_fn {
references.push(v8::ExternalReference {
- pointer: fast_fn.function() as _,
+ pointer: fast_fn.function as _,
});
references.push(v8::ExternalReference {
pointer: ctx.fast_fn_c_info.unwrap().as_ptr() as _,
@@ -218,7 +218,7 @@ fn add_op_to_deno_core_ops(
let templ = if let Some(fast_function) = &op_ctx.decl.fast_fn {
builder.build_fast(
scope,
- &**fast_function,
+ fast_function,
Some(op_ctx.fast_fn_c_info.unwrap().as_ptr()),
None,
None,