General code fixups.

This commit is contained in:
Stephen Chung
2021-07-04 16:40:15 +08:00
parent 23cc48f937
commit 694ac5b5bd
14 changed files with 155 additions and 134 deletions

View File

@@ -30,6 +30,7 @@ fn test_native_context_fn_name() -> Result<(), Box<EvalAltResult>> {
let mut engine = Engine::new();
#[allow(deprecated)]
engine
.register_raw_fn(
"add_double",

View File

@@ -160,6 +160,7 @@ mod test_switch_enum {
use super::*;
use rhai::Array;
#[derive(Debug, Clone)]
#[allow(dead_code)]
enum MyEnum {
Foo,
Bar(INT),