Skip to content

remove redundant import that current rust nightly complains about#43

Merged
cetra3 merged 1 commit intocetra3:masterfrom
aurelj:redundant_import
Sep 30, 2024
Merged

remove redundant import that current rust nightly complains about#43
cetra3 merged 1 commit intocetra3:masterfrom
aurelj:redundant_import

Conversation

@aurelj
Copy link
Contributor

@aurelj aurelj commented Apr 10, 2024

Current rust nightly complains about some redundant imports, so just remove these imports.
I've checked that these imports are not needed, even on rust stable.

$ rustc --version
rustc 1.79.0-nightly (ab5bda1aa 2024-04-08)
$ cargo check
    Checking tmq v0.4.0 (/home/aurel/devel/embedded/tmq)
warning: the item `zmq` is imported redundantly
 --> src/socket_types/dealer.rs:1:11
  |
1 | use zmq::{self, Context as ZmqContext};
  |           ^^^^ the item `zmq` is already defined by prelude
  |
  = note: `#[warn(unused_imports)]` on by default

warning: the item `zmq` is imported redundantly
 --> src/socket_types/pair.rs:1:11
  |
1 | use zmq::{self, Context as ZmqContext};
  |           ^^^^ the item `zmq` is already defined by prelude

warning: the item `zmq` is imported redundantly
 --> src/socket_types/publish.rs:1:11
  |
1 | use zmq::{self, Context as ZmqContext};
  |           ^^^^ the item `zmq` is already defined by prelude

warning: the item `zmq` is imported redundantly
 --> src/socket_types/pull.rs:1:11
  |
1 | use zmq::{self, Context as ZmqContext};
  |           ^^^^ the item `zmq` is already defined by prelude

warning: the item `zmq` is imported redundantly
 --> src/socket_types/push.rs:1:11
  |
1 | use zmq::{self, Context as ZmqContext};
  |           ^^^^ the item `zmq` is already defined by prelude

warning: the item `zmq` is imported redundantly
 --> src/socket_types/request_reply.rs:4:11
  |
4 | use zmq::{self, Context as ZmqContext};
  |           ^^^^ the item `zmq` is already defined by prelude

warning: the item `zmq` is imported redundantly
 --> src/socket_types/router.rs:1:11
  |
1 | use zmq::{self, Context as ZmqContext};
  |           ^^^^ the item `zmq` is already defined by prelude

warning: the item `zmq` is imported redundantly
 --> src/socket_types/subscribe.rs:1:11
  |
1 | use zmq::{self, Context as ZmqContext};
  |           ^^^^ the item `zmq` is already defined by prelude

warning: `tmq` (lib) generated 8 warnings
    Finished `dev` profile [unoptimized + debuginfo] target(s) in 13.18s

@cetra3 cetra3 merged commit 2fa91fb into cetra3:master Sep 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants