aboutsummaryrefslogtreecommitdiff
path: root/src/serialization.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/serialization.rs')
-rw-r--r--src/serialization.rs4
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`");
}
}