From f83fcbd9f06982c7dc2df25e519a24670461fc56 Mon Sep 17 00:00:00 2001 From: Daniel Eades Date: Sun, 25 Aug 2024 19:12:44 +0100 Subject: [PATCH] chore(deps): update 'quickxml' --- mavlink-bindgen/Cargo.toml | 2 +- mavlink-bindgen/src/parser.rs | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/mavlink-bindgen/Cargo.toml b/mavlink-bindgen/Cargo.toml index f34d44ab1d..d885ef9990 100644 --- a/mavlink-bindgen/Cargo.toml +++ b/mavlink-bindgen/Cargo.toml @@ -11,7 +11,7 @@ repository = "https://github.com/mavlink/rust-mavlink" [dependencies] crc-any = { workspace = true, default-features = false } -quick-xml = "0.26" +quick-xml = "0.36" quote = "1" proc-macro2 = "1.0.43" lazy_static = "1.2.0" diff --git a/mavlink-bindgen/src/parser.rs b/mavlink-bindgen/src/parser.rs index dd8e389ea1..eb4c2d6957 100644 --- a/mavlink-bindgen/src/parser.rs +++ b/mavlink-bindgen/src/parser.rs @@ -1069,8 +1069,7 @@ pub fn parse_profile( path: in_path.to_path_buf(), })?; let mut reader = Reader::from_reader(BufReader::new(file)); - reader.trim_text(true); - reader.trim_text_end(true); + reader.config_mut().trim_text(true); let mut buf = Vec::new(); loop {