[librsvg: 3/38] gio::content_type_get_mime_type() changed return type



commit ff3c72a724f6ef332176e4d210d79623602deca2
Author: Federico Mena Quintero <federico gnome org>
Date:   Wed Jan 16 17:44:35 2019 -0600

    gio::content_type_get_mime_type() changed return type

 rsvg_internals/src/io.rs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/rsvg_internals/src/io.rs b/rsvg_internals/src/io.rs
index 48efb4ef..2307a5c0 100644
--- a/rsvg_internals/src/io.rs
+++ b/rsvg_internals/src/io.rs
@@ -109,7 +109,7 @@ pub fn acquire_data(
         let (contents, _etag) = file.load_contents(cancellable)?;
 
         let (content_type, _uncertain) = gio::content_type_guess(uri, &contents);
-        let mime_type = gio::content_type_get_mime_type(&content_type);
+        let mime_type = gio::content_type_get_mime_type(&content_type).map(String::from);
 
         Ok(BinaryData {
             data: contents,


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]