Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

delete use std::iter::FromIterator to suppress warnings #1163

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Neutron3529
Copy link

Currently, Rust automatically add std::iter::FromIterator since prelude of std always included if #![no_std] is not enabled.

Thus no need to add use std::iter::FromIterator

(actually, that line will trigger 2 warnings:)

warning: the item `FromIterator` is imported redundantly
   --> src/devel.rs:13:5
    |
13  | use std::iter::FromIterator;
    |     ^^^^^^^^^^^^^^^^^^^^^^^
    |
   ::: /home/neutron/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/prelude/mod.rs:129:13
    |
129 |     pub use core::prelude::rust_2021::*;
    |             ------------------------ the item `FromIterator` is already defined here
    |
    = note: `#[warn(unused_imports)]` on by default

warning: the item `FromIterator` is imported redundantly
   --> src/download.rs:8:5
    |
8   | use std::iter::FromIterator;
    |     ^^^^^^^^^^^^^^^^^^^^^^^
    |
   ::: /home/neutron/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/prelude/mod.rs:129:13
    |
129 |     pub use core::prelude::rust_2021::*;
    |             ------------------------ the item `FromIterator` is already defined here

warning: `paru` (lib) generated 2 warnings

Thus I create this PR to suppress them.

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.

1 participant