From 3534a8985851f8fcaeb1782a58b923da78730f9a Mon Sep 17 00:00:00 2001 From: Dan Barella Date: Sat, 27 Jan 2018 15:55:17 -0500 Subject: [PATCH] Don't use assert_ne! `num` is tested against `rust 1.8.0`, which doesn't include `assert_ne!` -- so we use a plain ol' `assert` instead. --- src/cast.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cast.rs b/src/cast.rs index 5f45bd5..005a43b 100644 --- a/src/cast.rs +++ b/src/cast.rs @@ -661,5 +661,5 @@ fn float_to_integer_checks_overflow() { // Specifically make sure we didn't silently let the overflow through // (This line is mostly for humans -- the robots should catch any problem // on the line above). - assert_ne!(source.to_i32(), Some(-2147483648)); + assert!(source.to_i32() != Some(-2147483648)); }