From ecb0816c8302c1f47e7a8168ea839e8ee7b55ad6 Mon Sep 17 00:00:00 2001 From: Dan Barella Date: Mon, 29 Jan 2018 18:52:02 -0500 Subject: [PATCH] Remove an unneeded assert. --- src/cast.rs | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/cast.rs b/src/cast.rs index 005a43b..6b6abb1 100644 --- a/src/cast.rs +++ b/src/cast.rs @@ -657,9 +657,4 @@ fn float_to_integer_checks_overflow() { // Expect the overflow to be caught assert_eq!(source.to_i32(), None); - - // 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!(source.to_i32() != Some(-2147483648)); }