[librsvg: 4/7] xml_load_from_possibly_compressed_stream(): Don't use an Rc<XmlState> anymore
- From: Marge Bot <marge-bot src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [librsvg: 4/7] xml_load_from_possibly_compressed_stream(): Don't use an Rc<XmlState> anymore
- Date: Fri, 23 Sep 2022 18:19:26 +0000 (UTC)
commit 4110162131af3d865ea66bec454013bf5d54730a
Author: Federico Mena Quintero <federico gnome org>
Date: Fri Sep 23 11:46:46 2022 -0500
xml_load_from_possibly_compressed_stream(): Don't use an Rc<XmlState> anymore
Part-of: <https://gitlab.gnome.org/GNOME/librsvg/-/merge_requests/752>
src/xml/mod.rs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/xml/mod.rs b/src/xml/mod.rs
index 5e9015b86..b7de8aea1 100644
--- a/src/xml/mod.rs
+++ b/src/xml/mod.rs
@@ -715,7 +715,7 @@ pub fn xml_load_from_possibly_compressed_stream(
stream: &gio::InputStream,
cancellable: Option<&gio::Cancellable>,
) -> Result<Document, LoadingError> {
- let state = Rc::new(XmlState::new(session, document_builder, load_options));
+ let state = XmlState::new(session, document_builder, load_options);
let stream = get_input_stream_for_loading(stream, cancellable)?;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]