Skip to content

Commit 7789ec4

Browse files
committed
Fix builds
1 parent 9f46335 commit 7789ec4

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/api/register.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -792,14 +792,14 @@ impl Engine {
792792
#[allow(dead_code)]
793793
pub(crate) fn collect_fn_metadata_impl<T>(
794794
&self,
795-
ctx: Option<&NativeCallContext>,
795+
_ctx: Option<&NativeCallContext>,
796796
mapper: impl Fn(crate::module::FuncInfo) -> Option<T> + Copy,
797797
include_standard_packages: bool,
798798
) -> Vec<T> {
799799
let mut list = Vec::new();
800800

801801
#[cfg(not(feature = "no_function"))]
802-
if let Some(ctx) = ctx {
802+
if let Some(ctx) = _ctx {
803803
ctx.iter_namespaces()
804804
.flat_map(Module::iter_fn)
805805
.filter_map(|(func, f)| {
@@ -829,7 +829,7 @@ impl Engine {
829829
.for_each(|v| list.push(v));
830830

831831
#[cfg(not(feature = "no_module"))]
832-
if let Some(ctx) = ctx {
832+
if let Some(ctx) = _ctx {
833833
use crate::engine::NAMESPACE_SEPARATOR;
834834
use crate::SmartString;
835835

src/tests.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ fn check_struct_sizes() {
7272
assert_eq!(
7373
size_of::<FnPtr>(),
7474
48 - if cfg!(feature = "no_function") {
75-
WORD_SIZE
75+
2 * WORD_SIZE
7676
} else {
7777
0
7878
}

0 commit comments

Comments
 (0)