diff --git a/src/cast.rs b/src/cast.rs index b7f3f67..81c85e7 100644 --- a/src/cast.rs +++ b/src/cast.rs @@ -659,5 +659,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)); }