From 11c974a55e43cc126444e17fec8ffbd791b6063b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Fri, 16 Mar 2018 12:28:20 +0200 Subject: [PATCH] Fix some unused import compiler warnings if using < v1_10 --- gstreamer/src/element.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/gstreamer/src/element.rs b/gstreamer/src/element.rs index 8d786f4c2..18fffd301 100644 --- a/gstreamer/src/element.rs +++ b/gstreamer/src/element.rs @@ -10,8 +10,11 @@ use Element; use glib; use glib::IsA; -use glib::translate::{from_glib, from_glib_full, from_glib_none, FromGlib, FromGlibPtrBorrow, +use glib::translate::{from_glib, from_glib_full, from_glib_none, FromGlib, FromGlibPtrContainer, ToGlib, ToGlibPtr}; +#[cfg(any(feature = "v1_10", feature = "dox"))] +use glib::translate::FromGlibPtrBorrow; +#[cfg(any(feature = "v1_10", feature = "dox"))] use glib::object::Downcast; use QueryRef; use Event; @@ -29,6 +32,7 @@ use std::mem; use libc; use ffi; +#[cfg(any(feature = "v1_10", feature = "dox"))] use glib_ffi; use gobject_ffi;