From dbd5a44b900c36994a55474017ad875a0639b0bd Mon Sep 17 00:00:00 2001 From: Vivia Nikolaidou Date: Thu, 13 Oct 2022 14:00:24 +0300 Subject: [PATCH] hlssink3: Use #[cfg(feature = "doc")] on gst::prelude import It otherwise gives a warning about the unused import --- net/hlssink3/src/lib.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/net/hlssink3/src/lib.rs b/net/hlssink3/src/lib.rs index c6fa7191..ecd25f00 100644 --- a/net/hlssink3/src/lib.rs +++ b/net/hlssink3/src/lib.rs @@ -13,6 +13,7 @@ * Since: plugins-rs-0.8.0 */ use glib::prelude::*; +#[cfg(feature = "doc")] use gst::prelude::*; mod imp;