diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 64a543a1..3a30c812 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -66,11 +66,12 @@ jobs: toolchain: [stable] experimental: [false] include: - # smoketests for future and experimental toolchains + # smoketests for different toolchains - {toolchain: stable, os: windows-latest, experimental: false, flags: ""} - {toolchain: stable, os: macos-latest, experimental: false, flags: ""} - {toolchain: beta, os: ubuntu-latest, experimental: false, flags: ""} - - {toolchain: nightly, os: ubuntu-latest, experimental: true, flags: ""} + # nightly is a bit volatile + #- {toolchain: nightly, os: ubuntu-latest, experimental: true, flags: ""} fail-fast: false steps: - name: Checkout diff --git a/src/module/mod.rs b/src/module/mod.rs index 457402ad..ffb2bd82 100644 --- a/src/module/mod.rs +++ b/src/module/mod.rs @@ -1813,7 +1813,7 @@ impl Module { ) -> impl Iterator { self.iter_fn() .filter(|&f| f.func.is_script()) - .map(|f| (f.namespace, f.access, f.name.as_str(), f.params)) + .map(|f| (f.namespace, f.access, f.name.as_str(), f.num_params)) } /// _(internals)_ Get an iterator over all script-defined functions in the [`Module`]. diff --git a/tests/closures.rs b/tests/closures.rs index 32d4b795..69df04e1 100644 --- a/tests/closures.rs +++ b/tests/closures.rs @@ -378,10 +378,8 @@ fn test_closures_external() -> Result<(), Box> { #[test] #[cfg(not(feature = "no_closure"))] +#[cfg(not(feature = "sync"))] fn test_closures_callback() -> Result<(), Box> { - use std::cell::RefCell; - use std::rc::Rc; - type SingleNode = Rc; trait Node {