From d1d3aaf374db6e604523d180eb22f183211f6863 Mon Sep 17 00:00:00 2001 From: Stephen Chung Date: Sun, 13 Sep 2020 22:36:24 +0800 Subject: [PATCH] Add cast to type for constants to avoid mis-typing. --- tests/plugins.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/plugins.rs b/tests/plugins.rs index 928f0381..2bee84e4 100644 --- a/tests/plugins.rs +++ b/tests/plugins.rs @@ -11,7 +11,7 @@ mod test { pub mod special_array_package { use rhai::{Array, INT}; - pub const MYSTIC_NUMBER: INT = 42 as INT; + pub const MYSTIC_NUMBER: INT = 42; #[cfg(not(feature = "no_object"))] pub mod feature {