From b0f49542927acc6499a626a6c4d5ac76cb103925 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aur=C3=A9lien=20Jacobs?= Date: Wed, 10 Apr 2024 11:39:18 +0200 Subject: [PATCH] remove redundant import that current rust nightly complains about --- src/socket_types/dealer.rs | 2 +- src/socket_types/pair.rs | 2 +- src/socket_types/publish.rs | 2 +- src/socket_types/pull.rs | 2 +- src/socket_types/push.rs | 2 +- src/socket_types/request_reply.rs | 2 +- src/socket_types/router.rs | 2 +- src/socket_types/subscribe.rs | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/socket_types/dealer.rs b/src/socket_types/dealer.rs index 70964c0..f4b4d23 100644 --- a/src/socket_types/dealer.rs +++ b/src/socket_types/dealer.rs @@ -1,4 +1,4 @@ -use zmq::{self, Context as ZmqContext}; +use zmq::Context as ZmqContext; use crate::{comm::SenderReceiver, poll::ZmqPoller, FromZmqSocket, SocketBuilder}; diff --git a/src/socket_types/pair.rs b/src/socket_types/pair.rs index 3c78ecc..6ce0ec2 100644 --- a/src/socket_types/pair.rs +++ b/src/socket_types/pair.rs @@ -1,4 +1,4 @@ -use zmq::{self, Context as ZmqContext}; +use zmq::Context as ZmqContext; use crate::{comm::SenderReceiver, poll::ZmqPoller, FromZmqSocket, SocketBuilder}; diff --git a/src/socket_types/publish.rs b/src/socket_types/publish.rs index 98b25b2..2c5077d 100644 --- a/src/socket_types/publish.rs +++ b/src/socket_types/publish.rs @@ -1,4 +1,4 @@ -use zmq::{self, Context as ZmqContext}; +use zmq::Context as ZmqContext; use crate::{poll::ZmqPoller, FromZmqSocket, Sender, SocketBuilder}; diff --git a/src/socket_types/pull.rs b/src/socket_types/pull.rs index a7bbfe2..8eef271 100644 --- a/src/socket_types/pull.rs +++ b/src/socket_types/pull.rs @@ -1,4 +1,4 @@ -use zmq::{self, Context as ZmqContext}; +use zmq::Context as ZmqContext; use crate::{comm::Receiver, poll::ZmqPoller, FromZmqSocket, SocketBuilder}; diff --git a/src/socket_types/push.rs b/src/socket_types/push.rs index ebf276d..80bd22e 100644 --- a/src/socket_types/push.rs +++ b/src/socket_types/push.rs @@ -1,4 +1,4 @@ -use zmq::{self, Context as ZmqContext}; +use zmq::Context as ZmqContext; use crate::{comm::Sender, poll::ZmqPoller, FromZmqSocket, SocketBuilder}; diff --git a/src/socket_types/request_reply.rs b/src/socket_types/request_reply.rs index e47e03d..d75db4e 100644 --- a/src/socket_types/request_reply.rs +++ b/src/socket_types/request_reply.rs @@ -1,7 +1,7 @@ use std::pin::Pin; use crate::{poll::ZmqPoller, FromZmqSocket, Multipart, SocketBuilder}; -use zmq::{self, Context as ZmqContext}; +use zmq::Context as ZmqContext; /// Create a builder for a REQ socket pub fn request(context: &ZmqContext) -> SocketBuilder { diff --git a/src/socket_types/router.rs b/src/socket_types/router.rs index 47a81ca..4f50ebc 100644 --- a/src/socket_types/router.rs +++ b/src/socket_types/router.rs @@ -1,4 +1,4 @@ -use zmq::{self, Context as ZmqContext}; +use zmq::Context as ZmqContext; use crate::{ comm::SenderReceiver, poll::ZmqPoller, socket::AsZmqSocket, FromZmqSocket, Result, diff --git a/src/socket_types/subscribe.rs b/src/socket_types/subscribe.rs index 1f80abc..68beae4 100644 --- a/src/socket_types/subscribe.rs +++ b/src/socket_types/subscribe.rs @@ -1,4 +1,4 @@ -use zmq::{self, Context as ZmqContext}; +use zmq::Context as ZmqContext; use crate::{poll::ZmqPoller, socket::AsZmqSocket, FromZmqSocket, Receiver, SocketBuilder};