From df51521a79100b83e6395279c2dfb38859656783 Mon Sep 17 00:00:00 2001 From: Cain <75994858+cainthebest@users.noreply.github.com> Date: Fri, 2 Feb 2024 01:58:48 +0000 Subject: [PATCH] fix: remove bug panic due to xml protocol format now being supported --- crates/cli/src/main.rs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/crates/cli/src/main.rs b/crates/cli/src/main.rs index bce0fda..4104c03 100644 --- a/crates/cli/src/main.rs +++ b/crates/cli/src/main.rs @@ -223,11 +223,7 @@ fn output_result(output_mode: OutputMode, format: Ou OutputFormat::Xml => { match output_mode { OutputMode::Generic => output_result_xml(result.as_json()), - // BUG: In this case we get a writer error with all serde write methods some reason with xml 0.6.0 - // BUG: gamedig-cli.exe query -g -i -p -f xml --output-mode protocol-specific - // BUG: Writer: emitter error: document start event has already been emitted - // BUG: With xml 0.5.1 we get unsupported operation: 'serialize_unit_variant' - OutputMode::ProtocolSpecific => panic!("XML format is not supported for protocol specific output"), + OutputMode::ProtocolSpecific => output_result_xml(result.as_original()), } } #[cfg(feature = "bson")]