[librsvg] handle::acquire_stream(): Return a LoadingError
- From: Federico Mena Quintero <federico src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [librsvg] handle::acquire_stream(): Return a LoadingError
- Date: Thu, 29 Nov 2018 18:06:05 +0000 (UTC)
commit 390f9f0de28e5ec7baa372a7b4d01dc833b0566d
Author: Federico Mena Quintero <federico gnome org>
Date: Wed Nov 28 14:29:12 2018 -0600
handle::acquire_stream(): Return a LoadingError
rsvg_internals/src/handle.rs | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
---
diff --git a/rsvg_internals/src/handle.rs b/rsvg_internals/src/handle.rs
index e272a8b4..492a5acc 100644
--- a/rsvg_internals/src/handle.rs
+++ b/rsvg_internals/src/handle.rs
@@ -101,9 +101,8 @@ pub fn acquire_data(
pub fn acquire_stream(
handle: *mut RsvgHandle,
aurl: &AllowedUrl,
-) -> Result<InputStream, glib::Error> {
+) -> Result<InputStream, LoadingError> {
io::acquire_stream(&aurl, get_cancellable(handle).as_ref())
- .map_err(|_| glib::Error::new(RsvgError, "FIXME"))
}
fn keep_image_data(handle: *const RsvgHandle) -> bool {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]