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 {