summaryrefslogtreecommitdiff
path: root/librsvg
diff options
context:
space:
mode:
authorFederico Mena Quintero <federico@gnome.org>2019-10-11 10:35:13 -0500
committerFederico Mena Quintero <federico@gnome.org>2019-10-11 10:35:13 -0500
commite0beb49179d5a4b4752580e7c924c97eaf46eaef (patch)
tree70658cf4272fecf487e2667b58cc1bce8f88afd0 /librsvg
parent2c25647b865eceeee68530cd106a2f99eb006787 (diff)
downloadlibrsvg-e0beb49179d5a4b4752580e7c924c97eaf46eaef.tar.gz
Use a IsA<gio::InputStream> generic only in the toplevel librsvg_crate API
Don't use generics everywhere; obtain the abstract type as early as possible so that the toplevel-internal rsvg_internals::Handle can use simply &gio::InputStream arguments.
Diffstat (limited to 'librsvg')
-rw-r--r--librsvg/pixbuf_utils.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/librsvg/pixbuf_utils.rs b/librsvg/pixbuf_utils.rs
index 5c452d32..e34bbed7 100644
--- a/librsvg/pixbuf_utils.rs
+++ b/librsvg/pixbuf_utils.rs
@@ -195,7 +195,7 @@ fn pixbuf_from_file_with_size_mode(
let handle = match file
.read(cancellable)
.map_err(|e| LoadingError::from(e))
- .and_then(|stream| Handle::from_stream(&load_options, &stream, None))
+ .and_then(|stream| Handle::from_stream(&load_options, stream.as_ref(), None))
{
Ok(handle) => handle,
Err(e) => {