aboutsummaryrefslogtreecommitdiff
path: root/src/value.rs
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2017-04-05 16:49:48 -0700
committerGitHub <noreply@github.com>2017-04-05 16:49:48 -0700
commitd07ec8d1d6ab55d08db32dc447e233008f368b94 (patch)
treea2f607357c284a05ffb656f40c4b6b5ac801c855 /src/value.rs
parent42bc2e368aa6de3598fc3e0e11e7422cc0bd180f (diff)
parent3108d6dc176a58f2cb44f236b87a4c4f61b77de5 (diff)
downloadmilf-rs-d07ec8d1d6ab55d08db32dc447e233008f368b94.tar.gz
milf-rs-d07ec8d1d6ab55d08db32dc447e233008f368b94.zip
Merge pull request #160 from mre/error-handling-unwrap
Replace unwrap with expect in public-facing code
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)
}
}