[librsvg/alatiera/include-things: 2/2] (#383): bring glib and gio into the namespace.
- From: Jordan Petridis <jpetridis src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [librsvg/alatiera/include-things: 2/2] (#383): bring glib and gio into the namespace.
- Date: Sun, 25 Nov 2018 15:37:56 +0000 (UTC)
commit e6bc2b86b93c9c49d782fa231696290fc4d346dd
Author: Jordan Petridis <jordan centricular com>
Date: Sun Nov 25 16:24:45 2018 +0200
(#383): bring glib and gio into the namespace.
Newer versions of rustc are able to figure out that we want
to use certain crates, and bring them into the namespace
from an imported prelude. But we need to still support
rustc 1.27+ and thus should explicitly `use` the crates.
rsvg_internals/src/io.rs | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/rsvg_internals/src/io.rs b/rsvg_internals/src/io.rs
index 48d60528..f2c4a9a6 100644
--- a/rsvg_internals/src/io.rs
+++ b/rsvg_internals/src/io.rs
@@ -4,6 +4,7 @@ use glib_sys;
use libc;
use gio::{
+ self,
BufferedInputStream,
BufferedInputStreamExt,
Cancellable,
@@ -15,9 +16,7 @@ use gio::{
ZlibCompressorFormat,
ZlibDecompressor,
};
-use glib::translate::*;
-use glib::Bytes as GBytes;
-use glib::Cast;
+use glib::{self, translate::*, Bytes as GBytes, Cast};
use std::ptr;
use error::{set_gerror, LoadingError, RsvgError};
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]