From d8e59919b2c0db7a232cbe38b933d097f6134024 Mon Sep 17 00:00:00 2001 From: Matt Bilker Date: Fri, 25 Jan 2019 23:00:03 +0000 Subject: [PATCH] bin: put the decoded node collection derived straight from the text xml on the left --- src/bin/kbinxml.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/bin/kbinxml.rs b/src/bin/kbinxml.rs index 00aa72c..90e9d53 100644 --- a/src/bin/kbinxml.rs +++ b/src/bin/kbinxml.rs @@ -248,8 +248,8 @@ fn run() -> Fallible<()> { Printer::run(&buf)?; } - let (encoded_collection, _encoding) = kbinxml::from_binary(Bytes::from(buf.as_slice()))?; - compare_collections(&encoded_collection, &collection); + let (encoded_collection, _encoding) = kbinxml::from_binary(Bytes::from(buf.clone()))?; + compare_collections(&collection, &encoded_collection); io::stdout().write_all(&buf)?; }