Merge from master.

This commit is contained in:
Stephen Chung
2020-08-03 13:28:29 +08:00
4 changed files with 5 additions and 3 deletions

View File

@@ -88,6 +88,7 @@ fn test_call_fn_private() -> Result<(), Box<EvalAltResult>> {
fn test_fn_ptr_raw() -> Result<(), Box<EvalAltResult>> {
let mut engine = Engine::new();
#[allow(deprecated)]
engine
.register_fn("mul", |x: &mut INT, y: INT| *x *= y)
.register_raw_fn(

View File

@@ -16,7 +16,7 @@ fn test_fn_ptr_curry_call() -> Result<(), Box<EvalAltResult>> {
);
let mut engine = Engine::new();
engine.load_package(module.into());
engine.load_package(module);
#[cfg(not(feature = "no_object"))]
assert_eq!(