summaryrefslogtreecommitdiff
path: root/core/ops.rs
diff options
context:
space:
mode:
Diffstat (limited to 'core/ops.rs')
-rw-r--r--core/ops.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/core/ops.rs b/core/ops.rs
index 3a276082f..cceeb5654 100644
--- a/core/ops.rs
+++ b/core/ops.rs
@@ -175,13 +175,13 @@ impl OpCtx {
let mut fast_fn_c_info = None;
if let Some(fast_fn) = &decl.fast_fn {
- let args = CTypeInfo::new_from_slice(fast_fn.args());
- let ret = CTypeInfo::new(fast_fn.return_type());
+ let args = CTypeInfo::new_from_slice(fast_fn.args);
+ let ret = CTypeInfo::new(fast_fn.return_type);
// SAFETY: all arguments are coming from the trait and they have
// static lifetime
let c_fn = unsafe {
- CFunctionInfo::new(args.as_ptr(), fast_fn.args().len(), ret.as_ptr())
+ CFunctionInfo::new(args.as_ptr(), fast_fn.args.len(), ret.as_ptr())
};
fast_fn_c_info = Some(c_fn);
}