[librsvg: 3/30] use prelude for traits




commit cb1ad2045c3660d291d26eb73bcf60aefdac27cc
Author: Bilal Elmoussaoui <bil elmoussaoui gmail com>
Date:   Tue May 4 12:44:53 2021 +0200

    use prelude for traits
    
    Part-of: <https://gitlab.gnome.org/GNOME/librsvg/-/merge_requests/516>

 src/document.rs | 2 +-
 src/io.rs       | 2 +-
 src/xml/mod.rs  | 4 ++--
 3 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/src/document.rs b/src/document.rs
index 2720717d..7a48304a 100644
--- a/src/document.rs
+++ b/src/document.rs
@@ -1,7 +1,7 @@
 //! Main SVG document structure.
 
 use data_url::mime::Mime;
-use gdk_pixbuf::{PixbufLoader, PixbufLoaderExt};
+use gdk_pixbuf::{prelude::PixbufLoaderExt, PixbufLoader};
 use markup5ever::QualName;
 use once_cell::sync::Lazy;
 use std::cell::RefCell;
diff --git a/src/io.rs b/src/io.rs
index 8d6067d0..219ba7ef 100644
--- a/src/io.rs
+++ b/src/io.rs
@@ -1,7 +1,7 @@
 //! Utilities to acquire streams and data from from URLs.
 
 use data_url::{mime::Mime, DataUrl};
-use gio::{Cancellable, File as GFile, FileExt, InputStream, MemoryInputStream};
+use gio::{prelude::FileExt, Cancellable, File as GFile, InputStream, MemoryInputStream};
 use glib::{self, Bytes as GBytes, Cast};
 use std::fmt;
 use std::str::FromStr;
diff --git a/src/xml/mod.rs b/src/xml/mod.rs
index b441fd91..3e790989 100644
--- a/src/xml/mod.rs
+++ b/src/xml/mod.rs
@@ -3,8 +3,8 @@
 use encoding::label::encoding_from_whatwg_label;
 use encoding::DecoderTrap;
 use gio::{
-    BufferedInputStream, BufferedInputStreamExt, Cancellable, ConverterInputStream, InputStream,
-    ZlibCompressorFormat, ZlibDecompressor,
+    prelude::BufferedInputStreamExt, BufferedInputStream, Cancellable, ConverterInputStream,
+    InputStream, ZlibCompressorFormat, ZlibDecompressor,
 };
 use glib::Cast;
 use markup5ever::{


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