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

Build failure: redundant imports #4476

Closed
yonas opened this issue Apr 6, 2024 · 2 comments · Fixed by #4475
Closed

Build failure: redundant imports #4476

yonas opened this issue Apr 6, 2024 · 2 comments · Fixed by #4475

Comments

@yonas
Copy link
Contributor

yonas commented Apr 6, 2024

$ cargo build --features sqlite --release
...
error: the item `jsonwebtoken` is imported redundantly
 --> src/auth.rs:7:20
  |
7 | use jsonwebtoken::{self, errors::ErrorKind, Algorithm, DecodingKey, EncodingKey, Header};
  |                    ^^^^ the item `jsonwebtoken` is already defined by prelude
  |
  = note: `-D unused-imports` implied by `-D unused`
  = help: to override `-D unused` add `#[allow(unused_imports)]`

error: the item `serde_json` is imported redundantly
   --> src/util.rs:561:18
    |
561 | use serde_json::{self, Value};
    |                  ^^^^
    |
   ::: src/main.rs:20:1
    |
20  | extern crate serde_json;
    | ------------------------ the item `serde_json` is already imported here

error: could not compile `vaultwarden` (bin "vaultwarden") due to 2 previous errors
@yonas yonas changed the title Redundant imports Build failure: redundant imports Apr 6, 2024
@BlackDex
Copy link
Collaborator

BlackDex commented Apr 6, 2024

This is already addressed in #4475.

@BlackDex
Copy link
Collaborator

BlackDex commented Apr 6, 2024

Also as a side note, this does not happen with stable Rust which is what we support as our maximum Rust version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants