libimagentryview: Do not call header() as Entry::get_header() returns the header directly now
This commit is contained in:
parent
9edf9c0643
commit
e0023f82c5
2 changed files with 2 additions and 2 deletions
|
@ -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(())
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue