summaryrefslogtreecommitdiff
path: root/librsvg/pixbuf_utils.rs
diff options
context:
space:
mode:
Diffstat (limited to 'librsvg/pixbuf_utils.rs')
-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) => {