Add cast to type for constants to avoid mis-typing.

This commit is contained in:
Stephen Chung 2020-09-13 22:36:24 +08:00 committed by J Henry Waugh
parent f1d85ae99c
commit 6126f0cb10

View File

@ -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 {