mirror of
https://github.com/mbilker/kbinxml-rs.git
synced 2026-09-10 03:25:14 -05:00
printer: simplify logic by not returning processed NodeCollection
This commit is contained in:
@@ -8,7 +8,7 @@ use crate::reader::Reader;
|
||||
pub struct Printer;
|
||||
|
||||
impl Printer {
|
||||
pub fn run(input: &[u8]) -> Result<Option<NodeCollection>> {
|
||||
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(())
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user