aboutsummaryrefslogtreecommitdiff
path: root/src/value.rs
diff options
context:
space:
mode:
authorMatthias Endler <matthias.endler@trivago.com>2017-04-05 21:32:42 +0200
committerMatthias Endler <matthias.endler@trivago.com>2017-04-05 21:56:18 +0200
commit3108d6dc176a58f2cb44f236b87a4c4f61b77de5 (patch)
treea2f607357c284a05ffb656f40c4b6b5ac801c855 /src/value.rs
parent42bc2e368aa6de3598fc3e0e11e7422cc0bd180f (diff)
downloadmilf-rs-3108d6dc176a58f2cb44f236b87a4c4f61b77de5.tar.gz
milf-rs-3108d6dc176a58f2cb44f236b87a4c4f61b77de5.zip
Replace unwrap with expect in public methods
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)
}
}