aboutsummaryrefslogtreecommitdiff
path: root/src/value.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/value.rs')
-rw-r--r--src/value.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/value.rs b/src/value.rs
index 3a366d8..5c59437 100644
--- a/src/value.rs
+++ b/src/value.rs
@@ -337,7 +337,7 @@ impl<'s, T: ?Sized> Index for &'s T where T: Index {
impl fmt::Display for Value {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
- ::ser::to_string(self).unwrap().fmt(f)
+ ::ser::to_string(self).expect("Unable to represent value as string").fmt(f)
}
}