From 62f0fd2027c44ab1aa96cd4e92eb8a04f72ec1b7 Mon Sep 17 00:00:00 2001 From: TSnake41 Date: Tue, 22 Aug 2023 10:09:00 +0200 Subject: [PATCH] Fix xcp-metrics-test --- xcp-metrics-test/src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xcp-metrics-test/src/main.rs b/xcp-metrics-test/src/main.rs index 29bbc39..95dd5b3 100644 --- a/xcp-metrics-test/src/main.rs +++ b/xcp-metrics-test/src/main.rs @@ -14,8 +14,8 @@ fn main() { ], }; - let mut xml = String::new(); + let mut xml = vec![]; rrd.write_xml(&mut xml).unwrap(); - println!("{xml}"); + println!("{}", String::from_utf8(xml).unwrap()); }