Fix builds.

This commit is contained in:
Stephen Chung
2022-02-02 14:57:30 +08:00
parent 339136901d
commit e0ed713bb6
3 changed files with 15 additions and 10 deletions

View File

@@ -9,7 +9,12 @@ use rhai::Map;
#[test]
fn test_debugging() -> Result<(), Box<EvalAltResult>> {
let engine = Engine::new();
let mut engine = Engine::new();
engine.register_debugger(
|| Dynamic::UNIT,
|_, _, _, _, _| Ok(rhai::debugger::DebuggerCommand::Continue),
);
#[cfg(not(feature = "no_function"))]
#[cfg(not(feature = "no_index"))]