diff options
author | Alex Crichton <alex@alexcrichton.com> | 2015-03-09 11:09:07 -0700 |
---|---|---|
committer | Alex Crichton <alex@alexcrichton.com> | 2015-03-09 11:09:07 -0700 |
commit | ff3bb7d25505a565f8bdfd73b1105ae15a1e6f4b (patch) | |
tree | 8a4ea1156fb932cc8dc72171c6d81450ea24d52f /src/serialization.rs | |
parent | e14c2052b721d4f400f240e5711ed9510dd1b102 (diff) | |
download | milf-rs-ff3bb7d25505a565f8bdfd73b1105ae15a1e6f4b.tar.gz milf-rs-ff3bb7d25505a565f8bdfd73b1105ae15a1e6f4b.zip |
Reduce usage of unstable features
Diffstat (limited to 'src/serialization.rs')
-rw-r--r-- | src/serialization.rs | 4 |
1 files changed, 2 insertions, 2 deletions
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`"); } } |