diff --git a/src/cast.rs b/src/cast.rs index 6b6abb1..288acf4 100644 --- a/src/cast.rs +++ b/src/cast.rs @@ -656,5 +656,5 @@ fn float_to_integer_checks_overflow() { let source: f64 = 1.0e+123f64; // Expect the overflow to be caught - assert_eq!(source.to_i32(), None); + assert_eq!(cast::(source), None); }