From 4389b2036035c5e93e7ce26de8933b6637df259e Mon Sep 17 00:00:00 2001 From: Matt Bilker Date: Tue, 18 Dec 2018 22:02:56 +0000 Subject: [PATCH] printer: simplify logic by not returning processed NodeCollection --- src/printer.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/printer.rs b/src/printer.rs index e56c176..32136ed 100644 --- a/src/printer.rs +++ b/src/printer.rs @@ -8,7 +8,7 @@ use crate::reader::Reader; pub struct Printer; impl Printer { - pub fn run(input: &[u8]) -> Result> { + pub fn run(input: &[u8]) -> Result<()> { let mut reader = Reader::new(Bytes::from(input))?; let mut nodes = Vec::new(); let mut definitions = Vec::new(); @@ -53,6 +53,6 @@ impl Printer { None => eprintln!("collection: {:?}", collection), }; - Ok(collection) + Ok(()) } }