[librsvg] handle::acquire_data(): Return a LoadingError
- From: Federico Mena Quintero <federico src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [librsvg] handle::acquire_data(): Return a LoadingError
- Date: Thu, 29 Nov 2018 18:06:00 +0000 (UTC)
commit b33e3b9f4f8542e944e95315c4dff8b99a643512
Author: Federico Mena Quintero <federico gnome org>
Date: Wed Nov 28 14:27:18 2018 -0600
handle::acquire_data(): Return a LoadingError
rsvg_internals/src/handle.rs | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/rsvg_internals/src/handle.rs b/rsvg_internals/src/handle.rs
index 2e72c226..e272a8b4 100644
--- a/rsvg_internals/src/handle.rs
+++ b/rsvg_internals/src/handle.rs
@@ -91,9 +91,11 @@ pub struct BinaryData {
pub content_type: Option<String>,
}
-pub fn acquire_data(handle: *mut RsvgHandle, aurl: &AllowedUrl) -> Result<BinaryData, glib::Error> {
+pub fn acquire_data(
+ handle: *mut RsvgHandle,
+ aurl: &AllowedUrl,
+) -> Result<BinaryData, LoadingError> {
io::acquire_data(aurl, get_cancellable(handle).as_ref())
- .map_err(|_| glib::Error::new(RsvgError, "FIXME"))
}
pub fn acquire_stream(
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]