Skip to content

Always set #![no_std] to fix redundant import warning#143

Merged
taiki-e merged 1 commit intomasterfrom
taiki-e/ci
Mar 4, 2024
Merged

Always set #![no_std] to fix redundant import warning#143
taiki-e merged 1 commit intomasterfrom
taiki-e/ci

Conversation

@taiki-e
Copy link
Member

@taiki-e taiki-e commented Mar 3, 2024

https://github.com/tokio-rs/slab/actions/runs/8127091579/job/22211542846

error: the item `Vec` is imported redundantly
   --> src/lib.rs:123:24
    |
123 | use alloc::vec::{self, Vec};
    |                        ^^^
    |
   ::: /home/runner/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/prelude/mod.rs:115:13
    |
115 |     pub use super::v1::*;
    |             --------- the item `Vec` is already defined here
    |
    = note: `-D unused-imports` implied by `-D warnings`
    = help: to override `-D warnings` add `#[allow(unused_imports)]`

```
error: the item `Vec` is imported redundantly
   --> src/lib.rs:123:24
    |
123 | use alloc::vec::{self, Vec};
    |                        ^^^
    |
   ::: /home/runner/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/prelude/mod.rs:115:13
    |
115 |     pub use super::v1::*;
    |             --------- the item `Vec` is already defined here
    |
    = note: `-D unused-imports` implied by `-D warnings`
    = help: to override `-D warnings` add `#[allow(unused_imports)]`
```
@taiki-e taiki-e requested a review from Darksonn March 3, 2024 19:42
@taiki-e taiki-e merged commit f7b621f into master Mar 4, 2024
@taiki-e taiki-e deleted the taiki-e/ci branch March 4, 2024 15:25
@paolobarbolini paolobarbolini mentioned this pull request Jun 14, 2025
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