diff --git a/Cargo.toml b/Cargo.toml index 079aef1..2fbc6d6 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -15,7 +15,7 @@ repository = "https://github.com/hannobraun/3mf-rs" [dependencies] -quick-xml = { version = "0.36.0", features = ["serialize"] } +quick-xml = { version = "0.37.0", features = ["serialize"] } serde = { version = "1.0.152", features = ["derive"] } thiserror = "2.0.3" diff --git a/src/error.rs b/src/error.rs index 66dff05..bb047b8 100644 --- a/src/error.rs +++ b/src/error.rs @@ -12,11 +12,11 @@ pub enum Error { #[error("Error writing ZIP file (3MF files are ZIP files)")] Zip(#[from] ZipError), - /// Error reading/writing XML - #[error("Error reading/writing XML")] - XMLError(#[from] quick_xml::Error), - /// Error Deserializing internal 3MF XML structure #[error("Deserialization error from xml reading")] - DeError(#[from] quick_xml::DeError), + XMLDe(#[from] quick_xml::DeError), + + /// Error Serializing internal 3MF XML structure + #[error("Serialization error from xml writing")] + XMLSe(#[from] quick_xml::SeError), }