From 71aaf18818025c2446ba76e1777a3bf496dddbf3 Mon Sep 17 00:00:00 2001 From: aiongg Date: Sat, 31 Oct 2026 03:09:09 +0000 Subject: [PATCH] Integration: GPX attributes use decoded_and_normalized_value (deprecated method fails clippy) --- crates/meta/src/gpx.rs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/crates/meta/src/gpx.rs b/crates/meta/src/gpx.rs index b2a2d2a83..691a2b7e1 100644 --- a/crates/meta/src/gpx.rs +++ b/crates/meta/src/gpx.rs @@ -127,11 +127,15 @@ pub fn parse_gpx(s: &str) -> Result { for a in e.attributes().with_checks(false).flatten() { match local(a.key.as_ref()) { b"lat" => { - let v = a.decode_and_unescape_value(reader.decoder()).map_err(|e| GpxError::Xml(e.to_string()))?; + let v = a + .decoded_and_normalized_value(quick_xml::XmlVersion::Implicit1_0, reader.decoder()) + .map_err(|e| GpxError::Xml(e.to_string()))?; p.lat = v.trim().parse().ok(); } b"lon" => { - let v = a.decode_and_unescape_value(reader.decoder()).map_err(|e| GpxError::Xml(e.to_string()))?; + let v = a + .decoded_and_normalized_value(quick_xml::XmlVersion::Implicit1_0, reader.decoder()) + .map_err(|e| GpxError::Xml(e.to_string()))?; p.lon = v.trim().parse().ok(); } _ => {}