LightCraft: An open-source non-destructive photo editor written by scratch in pure Rust
Integration: GPX attributes use decoded_and_normalized_value (deprecated method fails clippy)
aiongg71aaf1881802
diff --git a/crates/meta/src/gpx.rs b/crates/meta/src/gpx.rsindex 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<Tracklog, GpxError> {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();}_ => {}