diff --git a/Cargo.toml b/Cargo.toml index 092a053b..ebc884f6 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -23,7 +23,7 @@ uuid = { version = "1.2", features = ["v4"] } serde = { version = "1.0", features = ["rc", "derive"] } serde_derive = "1.0" serde_repr = "0.1" -quick-xml = { version = "0.27.0", features = ["serialize"] } +quick-xml = { version = "0.28.0", features = ["serialize"] } rayon = { version = "1.3.0", optional = true } kurbo = { version = "0.9.0", optional = true } thiserror = "1.0" diff --git a/src/glyph/serialize.rs b/src/glyph/serialize.rs index 7cf2e3e8..d57e8a5f 100644 --- a/src/glyph/serialize.rs +++ b/src/glyph/serialize.rs @@ -44,11 +44,11 @@ impl Glyph { ); match options.quote_style { QuoteChar::Double => writer - .inner() + .get_mut() .write(b"\n") .map_err(GlifWriteError::Buffer)?, QuoteChar::Single => writer - .inner() + .get_mut() .write(b"\n") .map_err(GlifWriteError::Buffer)?, }; @@ -129,8 +129,8 @@ impl Glyph { } writer.write_event(Event::End(BytesEnd::new("glyph"))).map_err(GlifWriteError::Xml)?; - writer.inner().write_all("\n".as_bytes()).map_err(GlifWriteError::Buffer)?; - writer.inner().flush().map_err(GlifWriteError::Buffer)?; + writer.get_mut().write_all("\n".as_bytes()).map_err(GlifWriteError::Buffer)?; + writer.get_mut().flush().map_err(GlifWriteError::Buffer)?; Ok(writer.into_inner().into_inner()) } @@ -165,10 +165,10 @@ fn write_lib_section( writer.write_event(Event::Start(BytesStart::new("lib"))).map_err(GlifWriteError::Xml)?; for line in to_write.lines() { - writer.inner().write_all("\n".as_bytes()).map_err(GlifWriteError::Buffer)?; - options.write_indent(writer.inner()).map_err(GlifWriteError::Buffer)?; - options.write_indent(writer.inner()).map_err(GlifWriteError::Buffer)?; - writer.inner().write_all(line.as_bytes()).map_err(GlifWriteError::Buffer)?; + writer.get_mut().write_all("\n".as_bytes()).map_err(GlifWriteError::Buffer)?; + options.write_indent(writer.get_mut()).map_err(GlifWriteError::Buffer)?; + options.write_indent(writer.get_mut()).map_err(GlifWriteError::Buffer)?; + writer.get_mut().write_all(line.as_bytes()).map_err(GlifWriteError::Buffer)?; } writer.write_event(Event::End(BytesEnd::new("lib"))).map_err(GlifWriteError::Xml)?; Ok(())