From e4045256fe7a015902b81a1caa05c06518837bdb Mon Sep 17 00:00:00 2001 From: J Henry Waugh Date: Fri, 14 Aug 2020 19:39:28 -0500 Subject: [PATCH] Fix type resolution issue with no_float enabled --- src/packages/time_basic.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/packages/time_basic.rs b/src/packages/time_basic.rs index 202e7115..0b3cad13 100644 --- a/src/packages/time_basic.rs +++ b/src/packages/time_basic.rs @@ -99,7 +99,7 @@ fn time_diff(ts1: Instant, ts2: Instant) -> Result> .into(); } - Ok(-(seconds as INT).into()) + Ok(Dynamic::from(-(seconds as INT))) } else { let seconds = (ts1 - ts2).as_secs();