Skip to content

Comments

Fix unused import error in integration tests#562

Open
SFrijters wants to merge 1 commit intogeiger-rs:masterfrom
SFrijters:fix-unused-import-std-env
Open

Fix unused import error in integration tests#562
SFrijters wants to merge 1 commit intogeiger-rs:masterfrom
SFrijters:fix-unused-import-std-env

Conversation

@SFrijters
Copy link

> error: unused import: `std::env`
>   --> cargo-geiger/tests/integration_tests.rs:11:5
>    |
> 11 | use std::env;
>    |     ^^^^^^^^
>    |
> note: the lint level is defined here
>   --> cargo-geiger/tests/integration_tests.rs:2:11
>    |
>  2 | #![forbid(warnings)]
>    |           ^^^^^^^^
>    = note: `#[forbid(unused_imports)]` implied by `#[forbid(warnings)]`
>
> error: could not compile `cargo-geiger` (test "integration_tests") due to 1 previous error

Encountered in nixpkgs, which currently uses Rust 1.92.0 as the default Rust version.

> error: unused import: `std::env`
>   --> cargo-geiger/tests/integration_tests.rs:11:5
>    |
> 11 | use std::env;
>    |     ^^^^^^^^
>    |
> note: the lint level is defined here
>   --> cargo-geiger/tests/integration_tests.rs:2:11
>    |
>  2 | #![forbid(warnings)]
>    |           ^^^^^^^^
>    = note: `#[forbid(unused_imports)]` implied by `#[forbid(warnings)]`
>
> error: could not compile `cargo-geiger` (test "integration_tests") due to 1 previous error
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