Skip to content

Commit

Permalink
Merge pull request #641 from schungx/master
Browse files Browse the repository at this point in the history
Fix tests.
  • Loading branch information
schungx authored Sep 10, 2022
2 parents b1afc9e + ea82826 commit a2f679b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/module/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1813,7 +1813,7 @@ impl Module {
) -> impl Iterator<Item = (FnNamespace, FnAccess, &str, usize)> {
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`].
Expand Down
4 changes: 1 addition & 3 deletions tests/closures.rs
Original file line number Diff line number Diff line change
Expand Up @@ -378,10 +378,8 @@ fn test_closures_external() -> Result<(), Box<EvalAltResult>> {

#[test]
#[cfg(not(feature = "no_closure"))]
#[cfg(not(feature = "sync"))]
fn test_closures_callback() -> Result<(), Box<EvalAltResult>> {
use std::cell::RefCell;
use std::rc::Rc;

type SingleNode = Rc<dyn Node>;

trait Node {
Expand Down

0 comments on commit a2f679b

Please sign in to comment.