diff options
author | Divy Srivastava <dj.srivastava23@gmail.com> | 2023-03-31 18:12:14 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-31 14:42:14 +0200 |
commit | b9a379093264da47368ea9665f685016fe35bfca (patch) | |
tree | af6fd2e56846b8d0a6d1d8d88c0bfcffbb34c4d6 /core/ops.rs | |
parent | 0f41aff1d9f6c131ff69d6dd1dc053afb008a19d (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/ops.rs')
-rw-r--r-- | core/ops.rs | 6 |
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); } |