Revert "Enable capacity on packages."

This reverts commit 85ca6ec4a1.
This commit is contained in:
Stephen Chung
2022-09-14 15:17:36 +08:00
parent 72244b74cd
commit 640471f865
14 changed files with 16 additions and 38 deletions

View File

@@ -7,7 +7,7 @@ use rhai::{def_package, Engine, EvalAltResult, Module, Scope, INT};
fn test_packages() -> Result<(), Box<EvalAltResult>> {
def_package! {
/// My custom package.
MyPackage(m @ 32) : SSS {
MyPackage(m) : SSS {
m.set_native_fn("hello", |x: INT| Ok(x + 1));
m.set_native_fn("@", |x: INT, y: INT| Ok(x * x + y * y));
} |> |engine| {