From ff3bb7d25505a565f8bdfd73b1105ae15a1e6f4b Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Mon, 9 Mar 2015 11:09:07 -0700 Subject: Reduce usage of unstable features --- src/serialization.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/serialization.rs') diff --git a/src/serialization.rs b/src/serialization.rs index a7ddaf3..03f9de3 100644 --- a/src/serialization.rs +++ b/src/serialization.rs @@ -1062,7 +1062,7 @@ mod tests { match a { Ok(..) => panic!("should not have decoded"), Err(e) => { - assert_eq!(format!("{}", e).as_slice(), + assert_eq!(format!("{}", e), "expected a value of type `integer`, but \ found a value of type `float` for the key `bar`"); } @@ -1080,7 +1080,7 @@ mod tests { match a { Ok(..) => panic!("should not have decoded"), Err(e) => { - assert_eq!(format!("{}", e).as_slice(), + assert_eq!(format!("{}", e), "expected a value of type `integer` for the key `bar`"); } } -- cgit v1.2.3