From 5630294ce65838b56fecc1490764930fba4a2b2e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Fri, 29 Dec 2023 10:15:49 +0200 Subject: [PATCH] ptp-helper: Allow unused `Stderr` export It's not used when building tests and would otherwise cause a warning. Part-of: --- subprojects/gstreamer/libs/gst/helpers/ptp/io.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/subprojects/gstreamer/libs/gst/helpers/ptp/io.rs b/subprojects/gstreamer/libs/gst/helpers/ptp/io.rs index f422d03920..c1ccda10d7 100644 --- a/subprojects/gstreamer/libs/gst/helpers/ptp/io.rs +++ b/subprojects/gstreamer/libs/gst/helpers/ptp/io.rs @@ -1327,7 +1327,10 @@ mod imp { } } -pub use self::imp::{Poll, Stderr, Stdin, Stdout}; +// `Stderr` is not used when tests are enabled as no logging is performed to stderr. +#[cfg_attr(test, allow(unused_imports))] +pub use self::imp::Stderr; +pub use self::imp::{Poll, Stdin, Stdout}; #[cfg(test)] mod test {