Fix builds.
This commit is contained in:
parent
b63b4cb3af
commit
c32ace40a4
6
.github/workflows/build.yml
vendored
6
.github/workflows/build.yml
vendored
@ -67,9 +67,9 @@ jobs:
|
||||
strategy:
|
||||
matrix:
|
||||
include:
|
||||
- {os: ubuntu-latest, flags: "--profile unix -Z unstable-options", experimental: false}
|
||||
- {os: windows-latest, flags: "--profile windows -Z unstable-options", experimental: true}
|
||||
- {os: macos-latest, flags: "--profile macos -Z unstable-options", experimental: false}
|
||||
- {os: ubuntu-latest, flags: "--profile unix", experimental: false}
|
||||
- {os: windows-latest, flags: "--profile windows", experimental: true}
|
||||
- {os: macos-latest, flags: "--profile macos", experimental: false}
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
|
@ -11,6 +11,10 @@ def_package! {
|
||||
lib.standard = true;
|
||||
|
||||
combine_with_exported_module!(lib, "core", core_functions);
|
||||
|
||||
#[cfg(not(feature = "no_function"))]
|
||||
#[cfg(not(feature = "no_index"))]
|
||||
#[cfg(not(feature = "no_object"))]
|
||||
combine_with_exported_module!(lib, "reflection", reflection_functions);
|
||||
}
|
||||
}
|
||||
|
@ -269,7 +269,7 @@ fn test_get_set_collection() -> Result<(), Box<EvalAltResult>> {
|
||||
.register_fn("len", |col: &mut MyBag| col.len() as INT)
|
||||
.register_get("len", |col: &mut MyBag| col.len() as INT)
|
||||
.register_fn("clear", |col: &mut MyBag| col.clear())
|
||||
.register_fn("contains", |col: &mut MyBag, item: i64| col.contains(&item))
|
||||
.register_fn("contains", |col: &mut MyBag, item: INT| col.contains(&item))
|
||||
.register_fn("add", |col: &mut MyBag, item: MyItem| col.insert(item))
|
||||
.register_fn("+=", |col: &mut MyBag, item: MyItem| col.insert(item))
|
||||
.register_fn("remove", |col: &mut MyBag, item: MyItem| col.remove(&item))
|
||||
|
Loading…
Reference in New Issue
Block a user