net.rs: the item `Context` is imported redundantly
When I compile 1.24.3 on OpenIndiana (an illumos distro) I see this warning:
warning: the item `Context` is imported redundantly
--> ../../gstreamer-1.24.3/libs/gst/helpers/ptp/net.rs:501:17
|
36 | use crate::{error::Context, ffi::unix::*};
| -------------- the item `Context` is already imported here
...
501 | use crate::error::Context;
| ^^^^^^^^^^^^^^^^^^^^^
|
= note: `#[warn(unused_imports)]` on by default
Proposed fix:
--- gstreamer-1.24.3/libs/gst/helpers/ptp/net.rs.orig
+++ gstreamer-1.24.3/libs/gst/helpers/ptp/net.rs
@@ -498,8 +498,6 @@
#[cfg(any(target_os = "solaris", target_os = "illumos"))]
{
- use crate::error::Context;
-
socket
.join_multicast_v4(addr, &iface.ip_addr)
.with_context(|| {