commit
a2f679bb07
5
.github/workflows/build.yml
vendored
5
.github/workflows/build.yml
vendored
@ -66,11 +66,12 @@ jobs:
|
|||||||
toolchain: [stable]
|
toolchain: [stable]
|
||||||
experimental: [false]
|
experimental: [false]
|
||||||
include:
|
include:
|
||||||
# smoketests for future and experimental toolchains
|
# smoketests for different toolchains
|
||||||
- {toolchain: stable, os: windows-latest, experimental: false, flags: ""}
|
- {toolchain: stable, os: windows-latest, experimental: false, flags: ""}
|
||||||
- {toolchain: stable, os: macos-latest, experimental: false, flags: ""}
|
- {toolchain: stable, os: macos-latest, experimental: false, flags: ""}
|
||||||
- {toolchain: beta, os: ubuntu-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
|
fail-fast: false
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
|
@ -1813,7 +1813,7 @@ impl Module {
|
|||||||
) -> impl Iterator<Item = (FnNamespace, FnAccess, &str, usize)> {
|
) -> impl Iterator<Item = (FnNamespace, FnAccess, &str, usize)> {
|
||||||
self.iter_fn()
|
self.iter_fn()
|
||||||
.filter(|&f| f.func.is_script())
|
.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`].
|
/// _(internals)_ Get an iterator over all script-defined functions in the [`Module`].
|
||||||
|
@ -378,10 +378,8 @@ fn test_closures_external() -> Result<(), Box<EvalAltResult>> {
|
|||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
#[cfg(not(feature = "no_closure"))]
|
#[cfg(not(feature = "no_closure"))]
|
||||||
|
#[cfg(not(feature = "sync"))]
|
||||||
fn test_closures_callback() -> Result<(), Box<EvalAltResult>> {
|
fn test_closures_callback() -> Result<(), Box<EvalAltResult>> {
|
||||||
use std::cell::RefCell;
|
|
||||||
use std::rc::Rc;
|
|
||||||
|
|
||||||
type SingleNode = Rc<dyn Node>;
|
type SingleNode = Rc<dyn Node>;
|
||||||
|
|
||||||
trait Node {
|
trait Node {
|
||||||
|
Loading…
Reference in New Issue
Block a user