mirror of
https://github.com/mbilker/kbinxml-rs.git
synced 2026-09-08 18:45:18 -05:00
bin: use try operation for printer
This commit is contained in:
@@ -104,7 +104,7 @@ fn main() -> Result<(), anyhow::Error> {
|
||||
|
||||
if kbinxml::is_binary_xml(&contents) {
|
||||
if printer_enabled {
|
||||
Printer::run(&contents).unwrap();
|
||||
Printer::run(&contents)?;
|
||||
}
|
||||
|
||||
let (collection, _encoding) = kbinxml::from_slice(&contents)?;
|
||||
|
||||
Reference in New Issue
Block a user