From ab8fda7654264b028225e0cea483a7188ea43dd2 Mon Sep 17 00:00:00 2001 From: Dan Barella Date: Mon, 29 Jan 2018 19:03:12 -0500 Subject: [PATCH] Change assert form. --- src/cast.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }