Add missing pub to functions.

This commit is contained in:
Stephen Chung
2020-08-24 10:38:15 +08:00
parent 03237c9852
commit 2fbc1b7910
3 changed files with 6 additions and 6 deletions

View File

@@ -66,7 +66,7 @@ mod time_functions {
}
#[rhai_fn(return_raw, name = "-")]
fn time_diff(ts1: Instant, ts2: Instant) -> Result<Dynamic, Box<EvalAltResult>> {
pub fn time_diff(ts1: Instant, ts2: Instant) -> Result<Dynamic, Box<EvalAltResult>> {
#[cfg(not(feature = "no_float"))]
{
Ok(if ts2 > ts1 {