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 7ceb624ec1
commit d1d3aaf374

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 {