From ef36af6b1320d9801bef49b3329847c224719d65 Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Wed, 3 May 2017 20:34:15 +0200 Subject: [PATCH] Fix libimagentryview for toml 0.4 --- libimagentryview/src/builtin/stdout.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libimagentryview/src/builtin/stdout.rs b/libimagentryview/src/builtin/stdout.rs index 4d431f2e..3d9fea05 100644 --- a/libimagentryview/src/builtin/stdout.rs +++ b/libimagentryview/src/builtin/stdout.rs @@ -19,7 +19,7 @@ use libimagstore::store::Entry; -use toml::encode_str; +use toml::ser::to_string; use viewer::Viewer; use result::Result; @@ -44,7 +44,7 @@ impl Viewer for StdoutViewer { fn view_entry(&self, e: &Entry) -> Result<()> { if self.view_header { - println!("{}", encode_str(e.get_header())); + println!("{}", to_string(e.get_header()).unwrap_or(String::from("TOML Parser error"))); } if self.view_content {