libimagentryview: Do not call header() as Entry::get_header() returns the header directly now

This commit is contained in:
Matthias Beyer 2016-11-17 11:58:47 +01:00
parent 9edf9c0643
commit e0023f82c5
2 changed files with 2 additions and 2 deletions

View file

@ -40,7 +40,7 @@ impl Viewer for PlainViewer {
fn view_entry(&self, e: &Entry) -> Result<()> {
if self.show_header {
println!("{}", e.get_header().header());
println!("{}", e.get_header());
}
println!("{}", e.get_content());
Ok(())

View file

@ -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().header()));
println!("{}", encode_str(e.get_header()));
}
if self.view_content {